test_post_all() — fastapi Function Reference
Architecture documentation for the test_post_all() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 776054f6_d417_4cf5_1920_c2c345e316cf["test_post_all()"] a55fd08b_c04c_97f2_efca_060f542ca1af["test_tutorial002.py"] 776054f6_d417_4cf5_1920_c2c345e316cf -->|defined in| a55fd08b_c04c_97f2_efca_060f542ca1af style 776054f6_d417_4cf5_1920_c2c345e316cf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py lines 24–47
def test_post_all(client: TestClient):
response = client.put(
"/items/5",
json={
"item": {
"name": "Foo",
"price": 50.5,
"description": "Some Foo",
"tax": 0.1,
},
"user": {"username": "johndoe", "full_name": "John Doe"},
},
)
assert response.status_code == 200
assert response.json() == {
"item_id": 5,
"item": {
"name": "Foo",
"price": 50.5,
"description": "Some Foo",
"tax": 0.1,
},
"user": {"username": "johndoe", "full_name": "John Doe"},
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_post_all() do?
test_post_all() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_multiple_params/test_tutorial002.py.
Where is test_post_all() defined?
test_post_all() is defined in tests/test_tutorial/test_body_multiple_params/test_tutorial002.py at line 24.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free