Home / Function/ test_post_user() — fastapi Function Reference

test_post_user() — fastapi Function Reference

Architecture documentation for the test_post_user() function in test_tutorial003_01.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  e8c9a3cc_ab03_f8df_3b5a_eeb4be17d18e["test_post_user()"]
  9715cbb2_58a5_05ad_424d_1d36703539d5["test_tutorial003_01.py"]
  e8c9a3cc_ab03_f8df_3b5a_eeb4be17d18e -->|defined in| 9715cbb2_58a5_05ad_424d_1d36703539d5
  style e8c9a3cc_ab03_f8df_3b5a_eeb4be17d18e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_response_model/test_tutorial003_01.py lines 24–39

def test_post_user(client: TestClient):
    response = client.post(
        "/user/",
        json={
            "username": "foo",
            "password": "fighter",
            "email": "foo@example.com",
            "full_name": "Grave Dohl",
        },
    )
    assert response.status_code == 200, response.text
    assert response.json() == {
        "username": "foo",
        "email": "foo@example.com",
        "full_name": "Grave Dohl",
    }

Domain

Subdomains

Frequently Asked Questions

What does test_post_user() do?
test_post_user() is a function in the fastapi codebase, defined in tests/test_tutorial/test_response_model/test_tutorial003_01.py.
Where is test_post_user() defined?
test_post_user() is defined in tests/test_tutorial/test_response_model/test_tutorial003_01.py at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free