get_app_client() — fastapi Function Reference
Architecture documentation for the get_app_client() function in test_openapi_separate_input_output_schemas.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD c660ea81_fb98_0581_a314_dc8cb8b042bf["get_app_client()"] 97adeb06_a3f2_aa0f_0da8_64acee359394["test_openapi_separate_input_output_schemas.py"] c660ea81_fb98_0581_a314_dc8cb8b042bf -->|defined in| 97adeb06_a3f2_aa0f_0da8_64acee359394 1cf06e03_ce88_eda6_d7e8_302c4385d383["test_create_item()"] 1cf06e03_ce88_eda6_d7e8_302c4385d383 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf 6d7cfb70_4c6e_9f90_1122_7d048947d757["test_create_item_with_sub()"] 6d7cfb70_4c6e_9f90_1122_7d048947d757 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf 08ca0140_a368_b671_f981_5c7db39dcb31["test_create_item_list()"] 08ca0140_a368_b671_f981_5c7db39dcb31 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf 83e3dad6_d226_43b0_62b0_80dc3cf5e7d7["test_read_items()"] 83e3dad6_d226_43b0_62b0_80dc3cf5e7d7 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf d3ebf5d9_f4ee_ca6b_3c89_ef66cd4f2d58["test_with_computed_field()"] d3ebf5d9_f4ee_ca6b_3c89_ef66cd4f2d58 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf f916fd7f_28e2_3d26_1af8_2670f4f301bf["test_openapi_schema()"] f916fd7f_28e2_3d26_1af8_2670f4f301bf -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf a1e0676e_5a61_22e4_c21f_b0df96184338["test_openapi_schema_no_separate()"] a1e0676e_5a61_22e4_c21f_b0df96184338 -->|calls| c660ea81_fb98_0581_a314_dc8cb8b042bf style c660ea81_fb98_0581_a314_dc8cb8b042bf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_openapi_separate_input_output_schemas.py lines 32–61
def get_app_client(separate_input_output_schemas: bool = True) -> TestClient:
app = FastAPI(separate_input_output_schemas=separate_input_output_schemas)
@app.post("/items/", responses={402: {"model": Item}})
def create_item(item: Item) -> Item:
return item
@app.post("/items-list/")
def create_item_list(item: list[Item]):
return item
@app.get("/items/")
def read_items() -> list[Item]:
return [
Item(
name="Portal Gun",
description="Device to travel through the multi-rick-verse",
sub=SubItem(subname="subname"),
),
Item(name="Plumbus"),
]
@app.post("/with-computed-field/")
def create_with_computed_field(
with_computed_field: WithComputedField,
) -> WithComputedField:
return with_computed_field
client = TestClient(app)
return client
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does get_app_client() do?
get_app_client() is a function in the fastapi codebase, defined in tests/test_openapi_separate_input_output_schemas.py.
Where is get_app_client() defined?
get_app_client() is defined in tests/test_openapi_separate_input_output_schemas.py at line 32.
What calls get_app_client()?
get_app_client() is called by 7 function(s): test_create_item, test_create_item_list, test_create_item_with_sub, test_openapi_schema, test_openapi_schema_no_separate, test_read_items, test_with_computed_field.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free