We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3cadd commit 0317f2cCopy full SHA for 0317f2c
packages/service-library/tests/fastapi/test_lifespan_utils.py
@@ -11,13 +11,13 @@ async def test_multiple_lifespan_managers(capsys: pytest.CaptureFixture):
11
async def database_lifespan(app: FastAPI) -> AsyncIterator[State]:
12
_ = app
13
print("setup DB")
14
- yield State()
+ yield {}
15
print("shutdown DB")
16
17
async def cache_lifespan(app: FastAPI) -> AsyncIterator[State]:
18
19
print("setup CACHE")
20
21
print("shutdown CACHE")
22
23
app = FastAPI(lifespan=combine_lifespans(database_lifespan, cache_lifespan))
0 commit comments