Update API tests to use login instead of force_authenticate.
This commit is contained in:
@@ -27,7 +27,9 @@ class OCRAPITestCase(APITestCase):
|
||||
password=TEST_ADMIN_PASSWORD
|
||||
)
|
||||
|
||||
self.client.force_authenticate(user=self.admin_user)
|
||||
self.client.login(
|
||||
username=TEST_ADMIN_USERNAME, password=TEST_ADMIN_PASSWORD
|
||||
)
|
||||
|
||||
self.document_type = DocumentType.objects.create(
|
||||
label=TEST_DOCUMENT_TYPE
|
||||
|
||||
Reference in New Issue
Block a user