Home / Function/ test_post_extended_item() — fastapi Function Reference

test_post_extended_item() — fastapi Function Reference

Architecture documentation for the test_post_extended_item() function in test_union_inherited_body.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  71196c6f_1f7c_a437_600c_c7bccb757502["test_post_extended_item()"]
  3eabdbc0_2eb6_83c7_313a_f061f310f0ab["test_union_inherited_body.py"]
  71196c6f_1f7c_a437_600c_c7bccb757502 -->|defined in| 3eabdbc0_2eb6_83c7_313a_f061f310f0ab
  style 71196c6f_1f7c_a437_600c_c7bccb757502 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_union_inherited_body.py lines 27–30

def test_post_extended_item():
    response = client.post("/items/", json={"name": "Foo", "age": 5})
    assert response.status_code == 200, response.text
    assert response.json() == {"item": {"name": "Foo", "age": 5}}

Domain

Subdomains

Frequently Asked Questions

What does test_post_extended_item() do?
test_post_extended_item() is a function in the fastapi codebase, defined in tests/test_union_inherited_body.py.
Where is test_post_extended_item() defined?
test_post_extended_item() is defined in tests/test_union_inherited_body.py at line 27.

Analyze Your Own Codebase

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

Try Supermodel Free