Skip to content

Commit 6852f9f

Browse files
fix api test
1 parent 2baee26 commit 6852f9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/api/tests/test_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,8 @@ def test_can_create_same_label_in_multiple_projects(self):
258258
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
259259

260260
def test_can_create_same_suffix_with_different_prefix(self):
261-
self.client.login(username=self.super_user_name,
262-
password=self.super_user_pass)
261+
self.client.login(username=self.admin_user_name,
262+
password=self.admin_user_pass)
263263
label = {'text': 'Person', 'prefix_key': None, 'suffix_key': 'p'}
264264
response = self.client.post(self.url, format='json', data=label)
265265
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
@@ -268,8 +268,8 @@ def test_can_create_same_suffix_with_different_prefix(self):
268268
self.assertEqual(response.status_code, status.HTTP_201_CREATED)
269269

270270
def test_cannot_create_same_shortcut_key(self):
271-
self.client.login(username=self.super_user_name,
272-
password=self.super_user_pass)
271+
self.client.login(username=self.admin_user_name,
272+
password=self.admin_user_pass)
273273
label = {'text': 'Person', 'prefix_key': None, 'suffix_key': 'p'}
274274
response = self.client.post(self.url, format='json', data=label)
275275
self.assertEqual(response.status_code, status.HTTP_201_CREATED)

0 commit comments

Comments
 (0)