Added additional check for non html files to avoid system files like '.DS_store' or '.thumbsdb' messing up tests.

pull/20/head
Markus Steinlein 4 years ago
parent a24da7fbd4
commit f9bc6c5115

@ -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