From 4d3166b81f914dce1d62c048cc8fe97efa76a2e1 Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Thu, 17 Apr 2025 18:06:17 +0200 Subject: [PATCH] fix unit test for test dashboard --- app/tests/test_web_route.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/app/tests/test_web_route.py b/app/tests/test_web_route.py index cffc3f9..8991f0f 100644 --- a/app/tests/test_web_route.py +++ b/app/tests/test_web_route.py @@ -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