Update API tests to use login instead of force_authenticate.
This commit is contained in:
@@ -29,7 +29,9 @@ class FolderAPITestCase(APITestCase):
|
||||
password=TEST_ADMIN_PASSWORD
|
||||
)
|
||||
|
||||
self.client.force_authenticate(user=self.admin_user)
|
||||
self.client.login(
|
||||
username=TEST_ADMIN_USERNAME, password=TEST_ADMIN_PASSWORD
|
||||
)
|
||||
|
||||
def test_folder_create(self):
|
||||
self.client.post(
|
||||
|
||||
Reference in New Issue
Block a user