I am writing several test scripts for a django application that relies on django_social_auth to manage user authentication and login (only for facebook login).
I would like to get around the django_social_auth registration part - I already have some test users, and I get their authentication tokens before other tests.
I should not, technically, register my tested users again - for this test there should be enough existing, valid tokens.
How do I configure the django_social_auth system to use existing copies of auth tokens, bypassing the login process?
(I have to add that some of the user data can be deleted from my database between their authentication and the point at which I run this test)
source share