librelist archives

« back to archive

Flask tests using Flask-Oauth to login?

Flask tests using Flask-Oauth to login?

From:
Anders Mars Ytterström
Date:
2012-11-29 @ 20:47
Hi,

In my project I am using flask-Oauth to let users use their facebook or
Twitter accounts to login.

I have successfully finished my first iteration and was about to write some
tests using the flask test mechanism, but I can't figure out a way to
create a login session since flask tests do not support external redirects.

How do I best create login sessions or mock my way around this?

/ay