Skip to content

Commit

Permalink
Fix codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Jan 13, 2020
1 parent b0f6308 commit 5c1a5e0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions app/api/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,10 @@ def test_allows_superuser_to_create_project(self):
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'))
Expand Down

0 comments on commit 5c1a5e0

Please sign in to comment.