- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_router_events (0.11 sec)
-
tests/test_router_events.py
@pytest.fixture def state() -> State: return State() @pytest.mark.filterwarnings( r"ignore:\s*on_event is deprecated, use lifespan event handlers instead.*:DeprecationWarning" ) def test_router_events(state: State) -> None: app = FastAPI() @app.get("/") def main() -> dict[str, str]: return {"message": "Hello World"} @app.on_event("startup") def app_startup() -> None:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 7.3K bytes - Viewed (0)