Home / Function/ test_level1_default() — fastapi Function Reference

test_level1_default() — fastapi Function Reference

Architecture documentation for the test_level1_default() function in test_include_router_defaults_overrides.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  1a078323_a5bf_ad0a_cf6e_682e83be5719["test_level1_default()"]
  d87662b2_2485_5c84_66f0_3b294a501db6["test_include_router_defaults_overrides.py"]
  1a078323_a5bf_ad0a_cf6e_682e83be5719 -->|defined in| d87662b2_2485_5c84_66f0_3b294a501db6
  style 1a078323_a5bf_ad0a_cf6e_682e83be5719 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_include_router_defaults_overrides.py lines 359–368

def test_level1_default():
    response = client.get("/default1?level1=foo")
    assert response.json() == "foo"
    assert response.headers["content-type"] == "application/x-level-0"
    assert "x-level0" in response.headers
    assert "x-level1" not in response.headers
    assert "x-level2" not in response.headers
    assert "x-level3" not in response.headers
    assert "x-level4" not in response.headers
    assert "x-level5" not in response.headers

Domain

Subdomains

Frequently Asked Questions

What does test_level1_default() do?
test_level1_default() is a function in the fastapi codebase, defined in tests/test_include_router_defaults_overrides.py.
Where is test_level1_default() defined?
test_level1_default() is defined in tests/test_include_router_defaults_overrides.py at line 359.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free