tests: check settings page gives a 404 on unknown agendas

This commit is contained in:
Frédéric Péters 2018-04-22 17:41:04 +02:00
parent 12a236d20b
commit 74c00fa1f2
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@ def test_view_agendas_as_manager(app, manager_user):
agenda.save()
resp = app.get('/manage/agendas/%s/settings' % agenda.id, status=403)
# check it gives a 404 on unknown agendas
resp = app.get('/manage/agendas/%s/settings' % '9999', status=404)
def test_add_agenda(app, admin_user):
app = login(app)
resp = app.get('/manage/', status=200)