tests: update for change in redirect

This commit is contained in:
Frédéric Péters 2018-01-19 15:55:48 +01:00
parent bd73e447b6
commit 2ef32d7bd3
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ def login(app, username='admin', password='admin'):
def test_unlogged_access(app):
# connect while not being logged in
assert app.get('/', status=301).location == 'http://testserver/manage/'
assert app.get('/', status=302).location == 'http://testserver/manage/'
assert app.get('/manage/', status=302).location == 'http://testserver/login/?next=/manage/'
def test_access(app, admin_user):
@ -41,7 +41,7 @@ def test_access(app, admin_user):
def test_logout(app, admin_user):
app = login(app)
app.get('/logout/')
assert app.get('/', status=301).location == 'http://testserver/manage/'
assert app.get('/', status=302).location == 'http://testserver/manage/'
def test_create_category(app, admin_user):
app = login(app)