test_put_images_not_list() — fastapi Function Reference
Architecture documentation for the test_put_images_not_list() function in test_tutorial006.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5cf00544_0823_c25d_46a1_983ea2768747["test_put_images_not_list()"] b94050ac_a58d_457a_8756_02076d630f1f["test_tutorial006.py"] 5cf00544_0823_c25d_46a1_983ea2768747 -->|defined in| b94050ac_a58d_457a_8756_02076d630f1f style 5cf00544_0823_c25d_46a1_983ea2768747 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_body_nested_models/test_tutorial006.py lines 98–120
def test_put_images_not_list(client: TestClient):
response = client.put(
"/items/5",
json={
"name": "Foo",
"price": 35.4,
"images": {"url": "http://example.com/image.png", "name": "example image"},
},
)
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"loc": ["body", "images"],
"input": {
"url": "http://example.com/image.png",
"name": "example image",
},
"msg": "Input should be a valid list",
"type": "list_type",
},
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_put_images_not_list() do?
test_put_images_not_list() is a function in the fastapi codebase, defined in tests/test_tutorial/test_body_nested_models/test_tutorial006.py.
Where is test_put_images_not_list() defined?
test_put_images_not_list() is defined in tests/test_tutorial/test_body_nested_models/test_tutorial006.py at line 98.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free