def test_auth(self): global session if session: return with app.app_context(): with make_login() as sess: session = sess print 'test_auth', sess
def test_mr_auth(self): global risar_session if risar_session: return with app.app_context(): with make_login() as sess: risar_session = sess print 'test_risar_auth', sess