Example #1
0
def logged_client():
    c = app.test_client()
    with c.get('/auth/login').context as ctx:
        c.post('/auth/login', data={
            'email': '*****@*****.**',
            'password': '******',
            '_csrf_token': list(ctx.session._csrf)[-1]
        }, follow_redirects=True)
        return c
Example #2
0
def logged_client():
    c = app.test_client()
    with c.get('/auth/login').context as ctx:
        c.post('/auth/login',
               data={
                   'email': '*****@*****.**',
                   'password': '******',
                   '_csrf_token': list(ctx.session._csrf)[-1]
               },
               follow_redirects=True)
        return c
Example #3
0
def client():
    return app.test_client()
Example #4
0
def client():
    return app.test_client()