From 509d26471f209239ef093d97f2f331543992d0aa Mon Sep 17 00:00:00 2001 From: Stefan Allius Date: Sun, 20 Apr 2025 00:30:59 +0200 Subject: [PATCH] increase test coverage --- app/tests/test_web_route.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/tests/test_web_route.py b/app/tests/test_web_route.py index 5100914..19bfb03 100644 --- a/app/tests/test_web_route.py +++ b/app/tests/test_web_route.py @@ -61,3 +61,15 @@ async def test_manifest(): response = await client.get('/site.webmanifest') assert response.status_code == 200 assert response.mimetype == 'application/manifest+json' + +@pytest.mark.asyncio +async def test_data_fetch(): + """Test the healthy route.""" + client = app.test_client() + response = await client.get('/data-fetch') + assert response.status_code == 200 + result = await response.get_data() + + response = await client.get('/data-fetch') + assert response.status_code == 200 + result = await response.get_data()