File tree Expand file tree Collapse file tree 3 files changed +4
-23
lines changed Expand file tree Collapse file tree 3 files changed +4
-23
lines changed Original file line number Diff line number Diff 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]
5857asgi = [
Original file line number Diff line number Diff line change 22from contextlib import asynccontextmanager
33from typing import AsyncIterator
44
5- from asgi_lifespan import LifespanManager
65from fastapi import FastAPI
76from litestar import Litestar
87from litestar .testing import TestClient as LitestarTestClient
2221
2322@asynccontextmanager
2423async def starlette_app (app : Starlette ) -> AsyncIterator [TestClient ]:
25- async with LifespanManager (app ):
26- yield TestClient (app )
24+ yield TestClient (app )
2725
2826
2927@asynccontextmanager
3028async def fastapi_app (app : FastAPI ) -> AsyncIterator [TestClient ]:
31- async with LifespanManager (app ):
32- yield TestClient (app )
29+ yield TestClient (app )
3330
3431
3532@asynccontextmanager
3633async 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
You can’t perform that action at this time.
0 commit comments