Home / Function/ test_get_items_1() — fastapi Function Reference

test_get_items_1() — fastapi Function Reference

Architecture documentation for the test_get_items_1() function in test_infer_param_optionality.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  d58ecc11_67f4_de9f_4f12_affce1d78737["test_get_items_1()"]
  74d8243a_c563_6592_e257_8603bf93cc97["test_infer_param_optionality.py"]
  d58ecc11_67f4_de9f_4f12_affce1d78737 -->|defined in| 74d8243a_c563_6592_e257_8603bf93cc97
  style d58ecc11_67f4_de9f_4f12_affce1d78737 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_infer_param_optionality.py lines 63–70

def test_get_items_1():
    """Check that /items returns expected data"""
    response = client.get("/items")
    assert response.status_code == 200, response.text
    assert response.json() == [
        {"item_id": "i1", "user_id": "u1"},
        {"item_id": "i2", "user_id": "u2"},
    ]

Domain

Subdomains

Frequently Asked Questions

What does test_get_items_1() do?
test_get_items_1() is a function in the fastapi codebase, defined in tests/test_infer_param_optionality.py.
Where is test_get_items_1() defined?
test_get_items_1() is defined in tests/test_infer_param_optionality.py at line 63.

Analyze Your Own Codebase

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

Try Supermodel Free