diff --git a/fluent_contents/tests/test_admin.py b/fluent_contents/tests/test_admin.py index 26fdc19f..6abd273c 100644 --- a/fluent_contents/tests/test_admin.py +++ b/fluent_contents/tests/test_admin.py @@ -111,7 +111,7 @@ def test_copy_language_backend(self): self.assertTrue('AA' in data['formset_forms'][0]['html']) def _get_request(self, url, data=None): - request = self.factory.post(url, data=data) + request = self.factory.post(url, data=data or {}) request.csrf_processing_done = True request.session = {} request.user = self.admin_user