- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_app_lifespan_state (0.22 sec)
-
tests/test_router_events.py
assert state.sub_router_startup is True assert state.app_shutdown is True assert state.router_shutdown is True assert state.sub_router_shutdown is True def test_app_lifespan_state(state: State) -> None: @asynccontextmanager async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]: state.app_startup = True yield state.app_shutdown = True
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 3.2K bytes - Viewed (0)