Project

General

Profile

« Previous | Next » 

Revision 2ef32d7b

Added by Frédéric Péters about 6 years ago

tests: update for change in redirect

View differences:

tests/test_manager.py
30 30

  
31 31
def test_unlogged_access(app):
32 32
    # connect while not being logged in
33
    assert app.get('/', status=301).location == 'http://testserver/manage/'
33
    assert app.get('/', status=302).location == 'http://testserver/manage/'
34 34
    assert app.get('/manage/', status=302).location == 'http://testserver/login/?next=/manage/'
35 35

  
36 36
def test_access(app, admin_user):
......
41 41
def test_logout(app, admin_user):
42 42
    app = login(app)
43 43
    app.get('/logout/')
44
    assert app.get('/', status=301).location == 'http://testserver/manage/'
44
    assert app.get('/', status=302).location == 'http://testserver/manage/'
45 45

  
46 46
def test_create_category(app, admin_user):
47 47
    app = login(app)

Also available in: Unified diff