Closed dnutiu closed 6 years ago
I'm trying to write tests for successful login but the test seem to fail...
response = self.client.get(self.sample_protected_endpoint, data, content_type='application/json', AUTHORIZATION="JWT {}".format(token)) self.assertEqual(response.status_code, status.HTTP_200_OK)
Should have read the tests before creating this.
response = client.post( '/auth-token/', self.data, HTTP_AUTHORIZATION=auth, format='json')
I'm trying to write tests for successful login but the test seem to fail...