mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Cleanup
This commit is contained in:
@@ -176,16 +176,6 @@ class Domain(mixins.MessageLimitMixin, AdminObject):
|
||||
return "ok"
|
||||
return "critical"
|
||||
|
||||
@cached_property
|
||||
def dnsbl_status_color(self):
|
||||
"""Shortcut to DNSBL results."""
|
||||
if not self.dnsblresult_set.exists():
|
||||
return "warning"
|
||||
elif self.dnsblresult_set.blacklisted().exists():
|
||||
return "danger"
|
||||
else:
|
||||
return "success"
|
||||
|
||||
@property
|
||||
def spf_record(self):
|
||||
"""Return SPF record."""
|
||||
|
||||
@@ -45,6 +45,9 @@ class StatisticsViewSetTestCase(ModoAPITestCase):
|
||||
)
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
|
||||
resp = self.client.get(url + "?gset=mailtraffic&period=day")
|
||||
self.assertEqual(resp.status_code, 200)
|
||||
|
||||
resp = self.client.get(
|
||||
url + "?gset=mailtraffic&period=day&searchquery=test2.com"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user