Browse Source

Fix codacy

pull/532/head
Clemens Wolff 4 years ago
parent
commit
5c1a5e0a84
1 changed files with 4 additions and 5 deletions
  1. 9
      app/api/tests/test_api.py

9
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'))

Loading…
Cancel
Save