- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_router_events (0.15 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: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Oct 18 12:36:40 UTC 2023 - 3.2K bytes - Viewed (0)