Skip to content

Commit e8cd352

Browse files
committed
Remove asgi-lifespan from test dependencies
1 parent 82f0c14 commit e8cd352

File tree

3 files changed

+4
-23
lines changed

3 files changed

+4
-23
lines changed

pdm.lock

Lines changed: 1 addition & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ test = [
5252
"assertpy>=1.1",
5353
"freezegun>=1.4.0",
5454
"dirty-equals>=0.7.1.post0",
55-
"asgi-lifespan>=2.1.0",
5655
"httpx>=0.27.0",
5756
]
5857
asgi = [

tests/integration/factory.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from contextlib import asynccontextmanager
33
from typing import AsyncIterator
44

5-
from asgi_lifespan import LifespanManager
65
from fastapi import FastAPI
76
from litestar import Litestar
87
from litestar.testing import TestClient as LitestarTestClient
@@ -22,20 +21,17 @@
2221

2322
@asynccontextmanager
2423
async def starlette_app(app: Starlette) -> AsyncIterator[TestClient]:
25-
async with LifespanManager(app):
26-
yield TestClient(app)
24+
yield TestClient(app)
2725

2826

2927
@asynccontextmanager
3028
async def fastapi_app(app: FastAPI) -> AsyncIterator[TestClient]:
31-
async with LifespanManager(app):
32-
yield TestClient(app)
29+
yield TestClient(app)
3330

3431

3532
@asynccontextmanager
3633
async def litestar_app(app: Litestar) -> AsyncIterator[LitestarTestClient]:
37-
async with LifespanManager(app): # type: ignore[arg-type]
38-
yield LitestarTestClient(app)
34+
yield LitestarTestClient(app)
3935

4036

4137
@asynccontextmanager

0 commit comments

Comments
 (0)