test_no_data() — fastapi Function Reference
Architecture documentation for the test_no_data() function in test_forms_single_model.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 5c81a268_0a4f_353c_0d65_39a1e57a0190["test_no_data()"] 9040b4f3_c3f5_c14a_b0ec_0bf00390d9d7["test_forms_single_model.py"] 5c81a268_0a4f_353c_0d65_39a1e57a0190 -->|defined in| 9040b4f3_c3f5_c14a_b0ec_0bf00390d9d7 style 5c81a268_0a4f_353c_0d65_39a1e57a0190 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_forms_single_model.py lines 93–111
def test_no_data():
response = client.post("/form/")
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["body", "username"],
"msg": "Field required",
"input": {"tags": ["foo", "bar"], "with": "nothing"},
},
{
"type": "missing",
"loc": ["body", "lastname"],
"msg": "Field required",
"input": {"tags": ["foo", "bar"], "with": "nothing"},
},
]
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_no_data() do?
test_no_data() is a function in the fastapi codebase, defined in tests/test_forms_single_model.py.
Where is test_no_data() defined?
test_no_data() is defined in tests/test_forms_single_model.py at line 93.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free