tests: check homepage redirect
This commit is contained in:
parent
3653b8f7aa
commit
c0aafdee59
|
@ -30,6 +30,9 @@ def test_unlogged_access(app):
|
|||
# connect while not being logged in
|
||||
assert app.get('/manage/', status=302).location == 'http://localhost:80/login/?next=/manage/'
|
||||
|
||||
def test_home_redirect(app):
|
||||
assert app.get('/', status=302).location == 'http://localhost:80/manage/'
|
||||
|
||||
def test_access(app, admin_user):
|
||||
app = login(app)
|
||||
resp = app.get('/manage/', status=200)
|
||||
|
|
Loading…
Reference in New Issue