Update API tests to use login instead of force_authenticate.

This commit is contained in:
Roberto Rosario
2016-02-04 17:39:27 -04:00
parent 8614bc4bfc
commit 10eb7d49b2
6 changed files with 27 additions and 12 deletions

View File

@@ -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