Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _test (0.13 sec)

  1. tests/test_include_router_defaults_overrides.py

        default_response_class=ResponseLevel1,
        callbacks=callback_router1.routes,
    )
    
    app.include_router(router2_override)
    
    app.include_router(router2_default)
    
    client = TestClient(app)
    
    
    def test_level1_override():
        response = client.get("/override1?level1=foo")
        assert response.json() == "foo"
        assert response.headers["content-type"] == "application/x-level-1"
        assert "x-level0" in response.headers
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 358.6K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    * 🔧 Fix Ruff configuration unintentionally enabling and re-disabling mccabe complexity check. PR [#10893](https://github.com/tiangolo/fastapi/pull/10893) by [@jiridanek](https://github.com/jiridanek).
    * ✅ Re-enable test in `tests/test_tutorial/test_header_params/test_tutorial003.py` after fix in Starlette. PR [#10904](https://github.com/tiangolo/fastapi/pull/10904) by [@ooknimm](https://github.com/ooknimm).
    
    ### Docs
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri May 03 23:25:42 GMT 2024
    - 388.1K bytes
    - Viewed (1)
Back to top