mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-20 06:08:35 +02:00
Updated test
This commit is contained in:
@@ -93,6 +93,7 @@ SETTINGS_SAMPLE = {
|
||||
"maillog-logfile": "/var/log/mail.log",
|
||||
"maillog-rrd_rootdir": "/tmp",
|
||||
"maillog-greylist": False,
|
||||
"dmarc-enable_rlookups": False,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class ReportOptionsForm(forms.Form):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""Constructor."""
|
||||
super(ReportOptionsForm, self).__init__(*args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
if not args:
|
||||
year, week, day = timezone.now().isocalendar()
|
||||
self.fields["current_year"].initial = year
|
||||
|
||||
@@ -71,7 +71,6 @@ class ModoTestCase(ParametersMixin, TestCase):
|
||||
params = {}
|
||||
response = getattr(self.client, method)(
|
||||
url, params, HTTP_X_REQUESTED_WITH="XMLHttpRequest")
|
||||
print(response.content)
|
||||
self.assertEqual(response.status_code, status)
|
||||
return response.json()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user