test_put_with_no_data() — fastapi Function Reference
Architecture documentation for the test_put_with_no_data() function in test_tutorial004.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 450b1bb7_20ab_57ed_ff84_b858796e784e["test_put_with_no_data()"] 5c0d9a92_6f56_8b9b_409a_88b1ef69e272["test_tutorial004.py"] 450b1bb7_20ab_57ed_ff84_b858796e784e -->|defined in| 5c0d9a92_6f56_8b9b_409a_88b1ef69e272 style 450b1bb7_20ab_57ed_ff84_b858796e784e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body/test_tutorial004.py lines 56–74
def test_put_with_no_data(client: TestClient):
response = client.put("/items/123", json={})
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["body", "name"],
"msg": "Field required",
"input": {},
},
{
"type": "missing",
"loc": ["body", "price"],
"msg": "Field required",
"input": {},
},
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_put_with_no_data() do?
test_put_with_no_data() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body/test_tutorial004.py.
Where is test_put_with_no_data() defined?
test_put_with_no_data() is defined in tests/test_tutorial/test_body/test_tutorial004.py at line 56.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free