more debugging and catch md misconfigured error

This commit is contained in:
2021-06-24 09:43:00 -05:00
parent 946a557177
commit 1583e3be99
2 changed files with 18 additions and 2 deletions

View File

@@ -68,3 +68,12 @@ def test_favicon_override():
response = client.get('/no-title')
assert response.status_code == 200
assert b'<link rel="icon" href="/media/foo.png">' in response.data
def test_misconfigured_markdown_extensions():
"""Test that a misconfigured markdown extensions leads to a 500 at render time."""
instance_path = os.path.join(HERE, 'instance')
app = create_app(instance_path=instance_path, test_config={'MARKDOWN_EXTENSIONS': 'WRONG'})
client = app.test_client()
response = client.get('/no-title')
assert response.status_code == 500