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 26f80cf commit f029a6cCopy full SHA for f029a6c
1 file changed
backend-api/tests/test_health_public.py
@@ -0,0 +1,16 @@
1
+"""Smoke tests for public (unauthenticated) endpoints."""
2
+
3
+import pytest
4
+from httpx import AsyncClient
5
6
7
+@pytest.mark.asyncio
8
+async def test_public_endpoint_returns_200(client_factory) -> None:
9
+ client: AsyncClient = client_factory(None)
10
+ async with client:
11
+ response = await client.get("/v1/test/public")
12
13
+ assert response.status_code == 200
14
+ body = response.json()
15
+ assert body["requires_auth"] is False
16
+ assert "message" in body
0 commit comments