tests: add basic test for legacy /categories page

This commit is contained in:
Frédéric Péters 2020-11-15 15:39:01 +01:00
parent 27b8916657
commit 8ff7f49892
1 changed files with 10 additions and 0 deletions

View File

@ -157,6 +157,16 @@ def test_advertized_site_user_access():
assert 'authentication required' in output # locales ?
def test_categories_page():
FormDef.wipe()
create_formdef()
resp = get_app(pub).get('/categories')
assert 'href="category1/"' in resp
FormDef.wipe()
resp = get_app(pub).get('/categories')
assert 'href="category1/"' not in resp
def test_static_directories():
assert get_app(pub).get('/static/css/wcs.css')
assert get_app(pub).get('/static/images/feed-icon-10x10.png')