Merge pull request #20 from Ayreonaut/fix-test-static-pages

Test for static pages should ignore system files
pull/21/head
Johannes Thumshirn 4 years ago committed by GitHub
commit 65e3217726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,11 @@ def test_static_pages(app, client):
if f == "template.html" or f == "page.html": if f == "template.html" or f == "page.html":
continue continue
static_file = f.split('.',1)[0] # ignore non html files like system files e.g. '.DS_Store', '.thumbsdb', ...
if f.split('.', 1)[1] not in ['html', 'htm']:
continue
static_file = f.split('.', 1)[0]
page = "/" + static_file + ".html" page = "/" + static_file + ".html"
print("Checking presence of: ", page) print("Checking presence of: ", page)
res = client.get(page) res = client.get(page)

Loading…
Cancel
Save