Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_merged_mixed_state_lifespans (0.21 sec)

  1. tests/test_router_events.py

        app = FastAPI(lifespan=lifespan)
        app.include_router(router)
    
        with TestClient(app) as client:
            assert not client.app_state
    
    
    def test_merged_mixed_state_lifespans() -> None:
        @asynccontextmanager
        async def lifespan(app: FastAPI) -> AsyncGenerator[None, None]:
            yield
    
        @asynccontextmanager
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 24 19:09:52 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top