tests: add check for /manage/menu.json
This commit is contained in:
parent
a32f0cdef1
commit
d6d288226a
|
@ -335,3 +335,11 @@ def test_asset_management(app, admin_user):
|
|||
assert not os.path.exists(default_storage.path(filepath))
|
||||
|
||||
app.get('/manage/assets/delete?img_orig=/foo.png', status=403)
|
||||
|
||||
def test_menu_json(app, admin_user):
|
||||
app.get('/manage/menu.json', status=302)
|
||||
|
||||
app = login(app)
|
||||
resp = app.get('/manage/menu.json')
|
||||
assert resp.headers['content-type'] == 'application/json'
|
||||
assert resp.json[0]['label'] == 'Content Management'
|
||||
|
|
Loading…
Reference in New Issue