test_put_all() — fastapi Function Reference
Architecture documentation for the test_put_all() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 93f751df_cc8c_c403_ce1c_826658ce5c70["test_put_all()"] aae471ba_55e5_8e37_ca0d_9d433cc710ce["test_tutorial004.py"] 93f751df_cc8c_c403_ce1c_826658ce5c70 -->|defined in| aae471ba_55e5_8e37_ca0d_9d433cc710ce style 93f751df_cc8c_c403_ce1c_826658ce5c70 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body_nested_models/test_tutorial004.py lines 25–48
def test_put_all(client: TestClient):
response = client.put(
"/items/123",
json={
"name": "Foo",
"description": "A very nice Item",
"price": 35.4,
"tax": 3.2,
"tags": ["foo", "bar", "foo"],
"image": {"url": "http://example.com/image.png", "name": "example image"},
},
)
assert response.status_code == 200, response.text
assert response.json() == {
"item_id": 123,
"item": {
"name": "Foo",
"description": "A very nice Item",
"price": 35.4,
"tax": 3.2,
"tags": IsList("foo", "bar", check_order=False),
"image": {"url": "http://example.com/image.png", "name": "example image"},
},
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_put_all() do?
test_put_all() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_nested_models/test_tutorial004.py.
Where is test_put_all() defined?
test_put_all() is defined in tests/test_tutorial/test_body_nested_models/test_tutorial004.py at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free