def test_csrf_token_save():
    with pagepile_visual_filter.app.test_request_context() as context:
        token = pagepile_visual_filter.csrf_token()
        assert token == context.session['csrf_token']
def test_csrf_token_load():
    with pagepile_visual_filter.app.test_request_context() as context:
        context.session['csrf_token'] = 'test token'
        assert pagepile_visual_filter.csrf_token() == 'test token'
Ejemplo n.º 3
0
def test_csrf_token_save():
    with lexeme_forms.app.test_request_context() as context:
        token = lexeme_forms.csrf_token()
        assert token == context.session['_csrf_token']
def test_csrf_token_generate():
    with pagepile_visual_filter.app.test_request_context():
        token = pagepile_visual_filter.csrf_token()
        assert token != ''
Ejemplo n.º 5
0
def test_csrf_token_load():
    with lexeme_forms.app.test_request_context() as context:
        context.session['_csrf_token'] = 'test token'
        assert lexeme_forms.csrf_token() == 'test token'
Ejemplo n.º 6
0
def test_csrf_token_generate():
    with lexeme_forms.app.test_request_context():
        token = lexeme_forms.csrf_token()
        assert token != ''
Ejemplo n.º 7
0
def test_csrf_token_load():
    with hauki.app.test_request_context() as context:
        context.session['csrf_token'] = 'test token'
        assert hauki.csrf_token() == 'test token'
Ejemplo n.º 8
0
def test_csrf_token_save():
    with hauki.app.test_request_context() as context:
        token = hauki.csrf_token()
        assert token == context.session['csrf_token']
Ejemplo n.º 9
0
def test_csrf_token_generate():
    with hauki.app.test_request_context():
        token = hauki.csrf_token()
        assert token != ''
Ejemplo n.º 10
0
def test_csrf_token_save():
    with ranker.app.test_request_context() as context:
        token = ranker.csrf_token()
        assert token == context.session['csrf_token']
Ejemplo n.º 11
0
def test_csrf_token_generate():
    with ranker.app.test_request_context():
        token = ranker.csrf_token()
        assert token != ''