Skip to content

Commit 28b2a47

Browse files
JacobCoffeeclaude
andcommitted
Add test for health_check endpoint
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 8267c58 commit 28b2a47

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test___main__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
}
1414

1515

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+
1625
async def test_ping(aiohttp_client):
1726
app = web.Application()
1827
app.router.add_post("/", main.main)

0 commit comments

Comments
 (0)