Skip to content

Commit 0317f2c

Browse files
author
Andrei Neagu
committed
refactor
1 parent 6d3cadd commit 0317f2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/service-library/tests/fastapi/test_lifespan_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ async def test_multiple_lifespan_managers(capsys: pytest.CaptureFixture):
1111
async def database_lifespan(app: FastAPI) -> AsyncIterator[State]:
1212
_ = app
1313
print("setup DB")
14-
yield State()
14+
yield {}
1515
print("shutdown DB")
1616

1717
async def cache_lifespan(app: FastAPI) -> AsyncIterator[State]:
1818
_ = app
1919
print("setup CACHE")
20-
yield State()
20+
yield {}
2121
print("shutdown CACHE")
2222

2323
app = FastAPI(lifespan=combine_lifespans(database_lifespan, cache_lifespan))

0 commit comments

Comments
 (0)