We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8267c58 commit 28b2a47Copy full SHA for 28b2a47
tests/test___main__.py
@@ -13,6 +13,15 @@
13
}
14
15
16
+async def test_health_check(aiohttp_client):
17
+ app = web.Application()
18
+ app.router.add_get("/health", main.health_check)
19
+ client = await aiohttp_client(app)
20
+ response = await client.get("/health")
21
+ assert response.status == 200
22
+ assert await response.text() == "OK"
23
+
24
25
async def test_ping(aiohttp_client):
26
app = web.Application()
27
app.router.add_post("/", main.main)
0 commit comments