- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for app_shutdown (0.06 seconds)
-
tests/test_router_events.py
@app.on_event("shutdown") async def app_shutdown() -> None: state.app_shutdown = True assert state.app_shutdown is False with TestClient(app) as client: assert state.app_shutdown is False response = client.get("/") assert response.status_code == 200, response.text assert state.app_shutdown is TrueCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 11.7K bytes - Click Count (0)