-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unit Test Django Client Login? #81
Comments
I don't see any social login there, just a The problem with testing social authentication is the dependency with the third-parties that provider that auth for you, that's slow, prone to error and any user looking to run the tests need to register an application and define keys/secret for the desired backends. That's why tests on PSA are written using |
Sorry if I was not clear omab, I was not trying to test oauth in any meaningful way. I was simply trying to get an authenticated this worked for me:
|
Thank you @meconlin I had the same problem. Your script helped me a lot! |
Thanks man! |
@omab what if I really want to make sure that the integration of python social auth with my django project is working? I do not need to test that the social endpoints are working, but at least I would like to know that my site is doing right the request/reply cycle. How to go about this? Is there any example available? |
@gonvaled +1 |
How can I unit test authentication on my Django app using python-social-auth?
I attempted this:
but this call to login returns False and the user is not authenticated
The text was updated successfully, but these errors were encountered: