<@498057949541826571> Having the verify_session in...
# support-questions-legacy
n
@rp_st Having the verify_session in place, how can we write the unit tests for APIs present in app.py using Pytest? Will we have to mock a user? if so, how will we handle the expiry of the tokens?
r
hey @namanchhabra_60978 there is no easy way to do this. You will need to run a core and create an actual session for testing
n
Could you please help me with the steps to do this? Or do we have any document for this available by any chance? Because all the APIs of the complete project which are decorated with verify_session, have failed to be tested during unit tests
r
you can see how we do testing in our python SDK tests folder