diff --git a/docs/examples/testing/test_health_check_async.py b/docs/examples/testing/test_health_check_async.py index 3806c22b61..4fb8e50f6b 100644 --- a/docs/examples/testing/test_health_check_async.py +++ b/docs/examples/testing/test_health_check_async.py @@ -15,13 +15,6 @@ def health_check() -> str: app = Litestar(route_handlers=[health_check]) -async def test_health_check() -> None: - async with AsyncTestClient(app=app) as client: - response = await client.get("/health-check") - assert response.status_code == HTTP_200_OK - assert response.text == "healthy" - - @pytest.fixture(scope="function") async def test_client() -> AsyncIterator[AsyncTestClient[Litestar]]: async with AsyncTestClient(app=app) as client: diff --git a/docs/examples/testing/test_health_check_sync.py b/docs/examples/testing/test_health_check_sync.py index e7886ff938..5ec2e8bae6 100644 --- a/docs/examples/testing/test_health_check_sync.py +++ b/docs/examples/testing/test_health_check_sync.py @@ -15,13 +15,6 @@ def health_check() -> str: app = Litestar(route_handlers=[health_check]) -def test_health_check() -> None: - with TestClient(app=app) as client: - response = client.get("/health-check") - assert response.status_code == HTTP_200_OK - assert response.text == "healthy" - - @pytest.fixture(scope="function") def test_client() -> Iterator[TestClient[Litestar]]: with TestClient(app=app) as client: