add configurable contact email for error pages

This commit is contained in:
2021-02-23 13:11:52 -06:00
parent 085571e58f
commit 70a8d4f06a
4 changed files with 11 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ def test_page_that_doesnt_exist(client):
response = client.get('/ohuesthaoeusth')
assert response.status_code == 404
assert b'<b><tt>/ohuesthaoeusth</tt></b> does not seem to exist' in response.data
# test the contact email config
assert b'bss@incorporeal.org' in response.data
def test_files_outside_pages_do_not_get_served(client):
@@ -28,6 +30,8 @@ def test_internal_server_error_serves_error_page(client):
response = client.get('/actually-a-png')
assert response.status_code == 500
assert b'INTERNAL SERVER ERROR' in response.data
# test the contact email config
assert b'bss@incorporeal.org' in response.data
def test_weird_paths_do_not_get_served(client):