Updated test

This commit is contained in:
Antoine Nguyen
2023-02-23 18:08:13 +01:00
parent 682463474d
commit 8ce9220802
3 changed files with 2 additions and 2 deletions
+1
View File
@@ -93,6 +93,7 @@ SETTINGS_SAMPLE = {
"maillog-logfile": "/var/log/mail.log",
"maillog-rrd_rootdir": "/tmp",
"maillog-greylist": False,
"dmarc-enable_rlookups": False,
}
+1 -1
View File
@@ -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
-1
View File
@@ -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()