Home / Function/ test_nested_include_mixed_dict() — fastapi Function Reference

test_nested_include_mixed_dict() — fastapi Function Reference

Architecture documentation for the test_nested_include_mixed_dict() function in test_response_model_include_exclude.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  70f2f5a4_fb01_6076_c39e_abf27c79280b["test_nested_include_mixed_dict()"]
  e9d6e2c1_1fb5_3aa4_5028_7db5fa279f57["test_response_model_include_exclude.py"]
  70f2f5a4_fb01_6076_c39e_abf27c79280b -->|defined in| e9d6e2c1_1fb5_3aa4_5028_7db5fa279f57
  style 70f2f5a4_fb01_6076_c39e_abf27c79280b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_response_model_include_exclude.py lines 167–175

def test_nested_include_mixed_dict():
    response = client.get("/mixed_dict")
    assert response.status_code == 200, response.text
    assert response.json() == {
        "name": "mixed_dict model3 name",
        "ref2": {
            "ref": {"foo": "mixed_dict model foo", "bar": "mixed_dict model bar"},
        },
    }

Domain

Subdomains

Frequently Asked Questions

What does test_nested_include_mixed_dict() do?
test_nested_include_mixed_dict() is a function in the fastapi codebase, defined in tests/test_response_model_include_exclude.py.
Where is test_nested_include_mixed_dict() defined?
test_nested_include_mixed_dict() is defined in tests/test_response_model_include_exclude.py at line 167.

Analyze Your Own Codebase

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

Try Supermodel Free