Skip to content

Commit

Permalink
docs: remove unused code snippet (#3746)
Browse files Browse the repository at this point in the history
Closes: #3260
  • Loading branch information
JacobCoffee authored Sep 20, 2024
1 parent 47c09ff commit a38c6c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions docs/examples/testing/test_health_check_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 0 additions & 7 deletions docs/examples/testing/test_health_check_sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a38c6c1

Please sign in to comment.