Home / Function/ test_read_items() — fastapi Function Reference

test_read_items() — fastapi Function Reference

Architecture documentation for the test_read_items() function in test_openapi_separate_input_output_schemas.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  83e3dad6_d226_43b0_62b0_80dc3cf5e7d7["test_read_items()"]
  97adeb06_a3f2_aa0f_0da8_64acee359394["test_openapi_separate_input_output_schemas.py"]
  83e3dad6_d226_43b0_62b0_80dc3cf5e7d7 -->|defined in| 97adeb06_a3f2_aa0f_0da8_64acee359394
  c660ea81_fb98_0581_a314_dc8cb8b042bf["get_app_client()"]
  83e3dad6_d226_43b0_62b0_80dc3cf5e7d7 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf
  style 83e3dad6_d226_43b0_62b0_80dc3cf5e7d7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_openapi_separate_input_output_schemas.py lines 125–142

def test_read_items():
    client = get_app_client()
    client_no = get_app_client(separate_input_output_schemas=False)
    response = client.get("/items/")
    response2 = client_no.get("/items/")
    assert response.status_code == response2.status_code == 200, response.text
    assert (
        response.json()
        == response2.json()
        == [
            {
                "name": "Portal Gun",
                "description": "Device to travel through the multi-rick-verse",
                "sub": {"subname": "subname", "sub_description": None, "tags": []},
            },
            {"name": "Plumbus", "description": None, "sub": None},
        ]
    )

Domain

Subdomains

Frequently Asked Questions

What does test_read_items() do?
test_read_items() is a function in the fastapi codebase, defined in tests/test_openapi_separate_input_output_schemas.py.
Where is test_read_items() defined?
test_read_items() is defined in tests/test_openapi_separate_input_output_schemas.py at line 125.
What does test_read_items() call?
test_read_items() calls 1 function(s): get_app_client.

Analyze Your Own Codebase

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

Try Supermodel Free