예제 #1
0
파일: tests.py 프로젝트: gi0baro/weppy
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
예제 #2
0
파일: tests.py 프로젝트: zhongjl/emmett
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
예제 #3
0
파일: tests.py 프로젝트: gi0baro/weppy
def client():
    return app.test_client()
예제 #4
0
파일: tests.py 프로젝트: zhongjl/emmett
def client():
    return app.test_client()