diff --git a/app/api/tests/test_api.py b/app/api/tests/test_api.py index 5369fa1e..46c95466 100644 --- a/app/api/tests/test_api.py +++ b/app/api/tests/test_api.py @@ -117,11 +117,10 @@ class TestProjectListAPI(APITestCase): def test_allows_superuser_to_create_project_with_flags(self): self.client.login(username=self.super_user_name, password=self.super_user_pass) - response = self.client.post(self.url, format='json', data=dict( - collaborative_annotation=True, - randomize_document_order=True, - **self.data, - )) + data = dict(self.data) + data['collaborative_annotation'] = True + data['randomize_document_order'] = True + response = self.client.post(self.url, format='json', data=data) self.assertEqual(response.status_code, status.HTTP_201_CREATED) self.assertTrue(response.json().get('collaborative_annotation')) self.assertTrue(response.json().get('randomize_document_order'))