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