test_validate_response_recursive.py — fastapi Source File
Architecture documentation for test_validate_response_recursive.py, a python file in the fastapi codebase. 2 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 60353b9a_5a64_e1e9_2103_e81e091924ef["test_validate_response_recursive.py"] b3b56d75_ddc4_d945_3098_c31a20a71af7["app.py"] 60353b9a_5a64_e1e9_2103_e81e091924ef --> b3b56d75_ddc4_d945_3098_c31a20a71af7 a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"] 60353b9a_5a64_e1e9_2103_e81e091924ef --> a7c04dee_ee23_5891_b185_47ff6bed036d style 60353b9a_5a64_e1e9_2103_e81e091924ef fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from fastapi.testclient import TestClient
from .app import app
def test_recursive():
client = TestClient(app)
response = client.get("/items/recursive")
assert response.status_code == 200, response.text
assert response.json() == {
"sub_items": [{"name": "subitem", "sub_items": []}],
"name": "item",
}
response = client.get("/items/recursive-submodel")
assert response.status_code == 200, response.text
assert response.json() == {
"name": "item",
"sub_items1": [
{
"name": "subitem",
"sub_items2": [
{
"name": "subsubitem",
"sub_items1": [{"name": "subsubsubitem", "sub_items2": []}],
}
],
}
],
}
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does test_validate_response_recursive.py do?
test_validate_response_recursive.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Applications subdomain.
What functions are defined in test_validate_response_recursive.py?
test_validate_response_recursive.py defines 1 function(s): test_recursive.
What does test_validate_response_recursive.py depend on?
test_validate_response_recursive.py imports 2 module(s): app.py, testclient.py.
Where is test_validate_response_recursive.py in the architecture?
test_validate_response_recursive.py is located at tests/test_validate_response_recursive/test_validate_response_recursive.py (domain: FastAPI, subdomain: Applications, directory: tests/test_validate_response_recursive).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free