Home / Function/ test_create_item_list() — fastapi Function Reference

test_create_item_list() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_openapi_separate_input_output_schemas.py lines 98–122

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

Domain

Subdomains

Frequently Asked Questions

What does test_create_item_list() do?
test_create_item_list() is a function in the fastapi codebase, defined in tests/test_openapi_separate_input_output_schemas.py.
Where is test_create_item_list() defined?
test_create_item_list() is defined in tests/test_openapi_separate_input_output_schemas.py at line 98.
What does test_create_item_list() call?
test_create_item_list() 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