From a38c6c1a8c258571a8e9258be34821e155083661 Mon Sep 17 00:00:00 2001 From: Jacob Coffee Date: Thu, 19 Sep 2024 20:18:37 -0500 Subject: [PATCH] docs: remove unused code snippet (#3746) Closes: #3260 --- docs/examples/testing/test_health_check_async.py | 7 ------- docs/examples/testing/test_health_check_sync.py | 7 ------- 2 files changed, 14 deletions(-) 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: