Home / Function/ test_post_body_form() — fastapi Function Reference

test_post_body_form() — fastapi Function Reference

Architecture documentation for the test_post_body_form() function in test_tutorial001.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  fcb3f903_59b4_5f82_20cd_880b426deb00["test_post_body_form()"]
  3e40ad5e_e974_7834_df28_adf8792e6a37["test_tutorial001.py"]
  fcb3f903_59b4_5f82_20cd_880b426deb00 -->|defined in| 3e40ad5e_e974_7834_df28_adf8792e6a37
  style fcb3f903_59b4_5f82_20cd_880b426deb00 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_request_forms/test_tutorial001.py lines 22–25

def test_post_body_form(client: TestClient):
    response = client.post("/login/", data={"username": "Foo", "password": "secret"})
    assert response.status_code == 200
    assert response.json() == {"username": "Foo"}

Domain

Subdomains

Frequently Asked Questions

What does test_post_body_form() do?
test_post_body_form() is a function in the fastapi codebase, defined in tests/test_tutorial/test_request_forms/test_tutorial001.py.
Where is test_post_body_form() defined?
test_post_body_form() is defined in tests/test_tutorial/test_request_forms/test_tutorial001.py at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free