@@ -258,8 +258,8 @@ def test_can_create_same_label_in_multiple_projects(self):
258
258
self .assertEqual (response .status_code , status .HTTP_201_CREATED )
259
259
260
260
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 )
263
263
label = {'text' : 'Person' , 'prefix_key' : None , 'suffix_key' : 'p' }
264
264
response = self .client .post (self .url , format = 'json' , data = label )
265
265
self .assertEqual (response .status_code , status .HTTP_201_CREATED )
@@ -268,8 +268,8 @@ def test_can_create_same_suffix_with_different_prefix(self):
268
268
self .assertEqual (response .status_code , status .HTTP_201_CREATED )
269
269
270
270
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 )
273
273
label = {'text' : 'Person' , 'prefix_key' : None , 'suffix_key' : 'p' }
274
274
response = self .client .post (self .url , format = 'json' , data = label )
275
275
self .assertEqual (response .status_code , status .HTTP_201_CREATED )
0 commit comments