test_create_item() — fastapi Function Reference
Architecture documentation for the test_create_item() function in test_openapi_separate_input_output_schemas.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 1cf06e03_ce88_eda6_d7e8_302c4385d383["test_create_item()"] 97adeb06_a3f2_aa0f_0da8_64acee359394["test_openapi_separate_input_output_schemas.py"] 1cf06e03_ce88_eda6_d7e8_302c4385d383 -->|defined in| 97adeb06_a3f2_aa0f_0da8_64acee359394 c660ea81_fb98_0581_a314_dc8cb8b042bf["get_app_client()"] 1cf06e03_ce88_eda6_d7e8_302c4385d383 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf style 1cf06e03_ce88_eda6_d7e8_302c4385d383 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_openapi_separate_input_output_schemas.py lines 64–74
def test_create_item():
client = get_app_client()
client_no = get_app_client(separate_input_output_schemas=False)
response = client.post("/items/", json={"name": "Plumbus"})
response2 = client_no.post("/items/", json={"name": "Plumbus"})
assert response.status_code == response2.status_code == 200, response.text
assert (
response.json()
== response2.json()
== {"name": "Plumbus", "description": None, "sub": None}
)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does test_create_item() do?
test_create_item() is a function in the fastapi codebase, defined in tests/test_openapi_separate_input_output_schemas.py.
Where is test_create_item() defined?
test_create_item() is defined in tests/test_openapi_separate_input_output_schemas.py at line 64.
What does test_create_item() call?
test_create_item() 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