Update the user management app API tests to test for fail and success scenarios
based on permissions and access. The tests were also updated to comform with the new API test class interface. Signed-off-by: Michael Price <loneviking72@gmail.com>
This commit is contained in:
committed by
Roberto Rosario
parent
c9f6d64b44
commit
eae881c35a
@@ -57,6 +57,7 @@ class BaseAPITestCase(UserMixin, APITestCase):
|
||||
|
||||
self.assertTrue(logged_in)
|
||||
self.assertTrue(user.is_authenticated)
|
||||
return user.is_authenticated
|
||||
|
||||
def login_user(self):
|
||||
self.login(username=TEST_USER_USERNAME, password=TEST_USER_PASSWORD)
|
||||
|
||||
Reference in New Issue
Block a user