test_post_body_example() — fastapi Function Reference
Architecture documentation for the test_post_body_example() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 1014cecf_4b6e_6bf4_b2c5_1c33d5660123["test_post_body_example()"] 22b8da2a_6d46_4740_20cf_1bab4356c6ae["test_tutorial004.py"] 1014cecf_4b6e_6bf4_b2c5_1c33d5660123 -->|defined in| 22b8da2a_6d46_4740_20cf_1bab4356c6ae style 1014cecf_4b6e_6bf4_b2c5_1c33d5660123 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_schema_extra_example/test_tutorial004.py lines 26–36
def test_post_body_example(client: TestClient):
response = client.put(
"/items/5",
json={
"name": "Foo",
"description": "A very nice Item",
"price": 35.4,
"tax": 3.2,
},
)
assert response.status_code == 200
Domain
Subdomains
Source
Frequently Asked Questions
What does test_post_body_example() do?
test_post_body_example() is a function in the fastapi codebase, defined in tests/test_tutorial/test_schema_extra_example/test_tutorial004.py.
Where is test_post_body_example() defined?
test_post_body_example() is defined in tests/test_tutorial/test_schema_extra_example/test_tutorial004.py at line 26.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free