fix unit test for test dashboard

This commit is contained in:
Stefan Allius
2025-04-17 18:06:17 +02:00
parent e31a5a2f5a
commit 4d3166b81f

View File

@@ -11,5 +11,10 @@ async def test_home():
client = app.test_client()
response = await client.get('/')
assert response.status_code == 200
result = await response.get_data()
assert result == b"Hello, world"
@pytest.mark.asyncio
async def test_page():
"""Test the empty page route."""
client = app.test_client()
response = await client.get('/page')
assert response.status_code == 200