Skip to content

Commit 5c1a5e0

Browse files
committed
Fix codacy
1 parent b0f6308 commit 5c1a5e0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

app/api/tests/test_api.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ def test_allows_superuser_to_create_project(self):
117117
def test_allows_superuser_to_create_project_with_flags(self):
118118
self.client.login(username=self.super_user_name,
119119
password=self.super_user_pass)
120-
response = self.client.post(self.url, format='json', data=dict(
121-
collaborative_annotation=True,
122-
randomize_document_order=True,
123-
**self.data,
124-
))
120+
data = dict(self.data)
121+
data['collaborative_annotation'] = True
122+
data['randomize_document_order'] = True
123+
response = self.client.post(self.url, format='json', data=data)
125124
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
126125
self.assertTrue(response.json().get('collaborative_annotation'))
127126
self.assertTrue(response.json().get('randomize_document_order'))

0 commit comments

Comments
 (0)