Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for filterwarnings (0.05 seconds)

  1. pyproject.toml

    disallow_untyped_defs = false
    disallow_untyped_calls = false
    
    [tool.pytest]
    minversion = "9.0"
    addopts = [
      "--strict-config",
      "--strict-markers",
      "--ignore=docs_src",
    ]
    strict_xfail = true
    filterwarnings = [
        "error",
    ]
    timeout = "20"
    
    [tool.coverage.run]
    parallel = true
    data_file = "coverage/.coverage"
    source = [
        "docs_src",
        "tests",
        "fastapi"
    ]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 12:36:49 GMT 2026
    - 10.3K bytes
    - Click Count (0)
  2. tests/test_router_events.py

        router_shutdown: bool = False
        sub_router_startup: bool = False
        sub_router_shutdown: bool = False
    
    
    @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("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 11.7K bytes
    - Click Count (0)
Back to Top