https://supertokens.com/ logo
#support-questions
Title
# support-questions
e

execreate

04/26/2022, 5:56 AM
Hey everyone, could you please help me with settings up unit test for my Django app - how do I login programmatically if I have passwordless recipe with supertokens?
r

rp

04/26/2022, 6:54 AM
hey @execreate
Are you using something like pupiteer for testing?
e

execreate

04/26/2022, 6:58 AM
hi @rp i'm using pytest
r

rp

04/26/2022, 7:00 AM
i see. So you will need to run a supertokens core while the tests are happnening and you can do something like this: https://github.com/supertokens/supertokens-python/blob/master/tests/Django/test_django.py#L103
e

execreate

04/26/2022, 7:02 AM
thanks @rp !
9 Views