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.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  aab9be3b_a4d9_7a69_7ddb_b422aa243195["test_post_user()"]
  2e763839_e292_a96a_8a00_5565400e0c49["test_tutorial003.py"]
  aab9be3b_a4d9_7a69_7ddb_b422aa243195 -->|defined in| 2e763839_e292_a96a_8a00_5565400e0c49
  style aab9be3b_a4d9_7a69_7ddb_b422aa243195 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_tutorial/test_response_model/test_tutorial003.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.py.
Where is test_post_user() defined?
test_post_user() is defined in tests/test_tutorial/test_response_model/test_tutorial003.py at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free