test_model_with_tuple_invalid() — fastapi Function Reference
Architecture documentation for the test_model_with_tuple_invalid() function in test_tuples.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 773410ad_9047_fc54_6629_f420f0f27e03["test_model_with_tuple_invalid()"] 01aad658_409e_7170_8762_4d5bce266329["test_tuples.py"] 773410ad_9047_fc54_6629_f420f0f27e03 -->|defined in| 01aad658_409e_7170_8762_4d5bce266329 style 773410ad_9047_fc54_6629_f420f0f27e03 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tuples.py lines 43–50
def test_model_with_tuple_invalid():
data = {"items": [["foo", "bar"], ["baz", "whatelse", "too", "much"]]}
response = client.post("/model-with-tuple/", json=data)
assert response.status_code == 422, response.text
data = {"items": [["foo", "bar"], ["baz"]]}
response = client.post("/model-with-tuple/", json=data)
assert response.status_code == 422, response.text
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_model_with_tuple_invalid() do?
test_model_with_tuple_invalid() is a function in the fastapi codebase, defined in tests/test_tuples.py.
Where is test_model_with_tuple_invalid() defined?
test_model_with_tuple_invalid() is defined in tests/test_tuples.py at line 43.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free