New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use token authentication while testing REST API #43
Comments
Hi @Darwesh27, Yeah the |
I've solved using the credentials methods, here's the gist. |
@eracle gist (Error 404) |
@eracle link gives error 404. Kindly help with the right link |
sorry guys, it seems desappeared from my gist list |
Submit a new one |
Unfortunately, I don't have that code anymore. |
I am using django rest framework's token authentication in my django project and I need to unit test my ModelViewSets but the default
login
method of the TestCase class in not doing the job. I'm using drf's TokenAuthentication.The text was updated successfully, but these errors were encountered: