[Fixed]-Testing authentication in Django Rest Framework Views — Cannot authenticate when testing

10👍

Instead of calling self.factory.get(), call self.client.get().

I’m guessing self.client.login has no effect on self.factory.

Leave a comment