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