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