From 5c1a5e0a84126f3ec5f89b563b78125a02205f74 Mon Sep 17 00:00:00 2001 From: Clemens Wolff Date: Mon, 13 Jan 2020 09:19:01 -0500 Subject: [PATCH] Fix codacy --- app/api/tests/test_api.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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'))