tests: add sso/slo tests

This commit is contained in:
Frédéric Péters 2016-07-22 14:51:39 +02:00
parent 1c00c3963c
commit 69eb57b060
2 changed files with 6 additions and 0 deletions

View File

@ -1 +1,2 @@
LANGUAGE_CODE = 'en-us'
INSTALLED_APPS = INSTALLED_APPS + ('mellon',)

View File

@ -57,6 +57,11 @@ def test_logout(app, admin_user):
app.get('/logout/')
assert app.get('/manage/', status=302).location == 'http://localhost:80/login/?next=/manage/'
def test_logout_next(app, admin_user):
app = login(app)
app.get('/logout/')
assert app.get('/manage/', status=302).location == 'http://localhost:80/login/?next=/manage/'
def test_menu_json(app, admin_user):
app = login(app)
resp = app.get('/manage/menu.json', status=200)