test_post_body_form_no_data() — fastapi Function Reference
Architecture documentation for the test_post_body_form_no_data() function in test_tutorial002.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD b96ff88a_5f98_1353_29b5_81978ba6851a["test_post_body_form_no_data()"] 6fa7bef8_d1fa_4291_dad4_4d0073156a79["test_tutorial002.py"] b96ff88a_5f98_1353_29b5_81978ba6851a -->|defined in| 6fa7bef8_d1fa_4291_dad4_4d0073156a79 style b96ff88a_5f98_1353_29b5_81978ba6851a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_request_form_models/test_tutorial002.py lines 75–93
def test_post_body_form_no_data(client: TestClient):
response = client.post("/login/")
assert response.status_code == 422
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["body", "username"],
"msg": "Field required",
"input": {},
},
{
"type": "missing",
"loc": ["body", "password"],
"msg": "Field required",
"input": {},
},
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_post_body_form_no_data() do?
test_post_body_form_no_data() is a function in the fastapi codebase, defined in tests/test_tutorial/test_request_form_models/test_tutorial002.py.
Where is test_post_body_form_no_data() defined?
test_post_body_form_no_data() is defined in tests/test_tutorial/test_request_form_models/test_tutorial002.py at line 75.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free