test_tutorial003.py — fastapi Source File
Architecture documentation for test_tutorial003.py, a python file in the fastapi codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 3aeca3ba_9e3e_78db_7300_57c25f8641a9["test_tutorial003.py"] 967b6712_70e2_f5fa_f671_7c149857a445["responses.py"] 3aeca3ba_9e3e_78db_7300_57c25f8641a9 --> 967b6712_70e2_f5fa_f671_7c149857a445 a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"] 3aeca3ba_9e3e_78db_7300_57c25f8641a9 --> a7c04dee_ee23_5891_b185_47ff6bed036d 391799db_078f_13ed_b5b5_49bd1d4cdd0b["tutorial003_py39.py"] 3aeca3ba_9e3e_78db_7300_57c25f8641a9 --> 391799db_078f_13ed_b5b5_49bd1d4cdd0b style 3aeca3ba_9e3e_78db_7300_57c25f8641a9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from fastapi.responses import PlainTextResponse
from fastapi.testclient import TestClient
from docs_src.advanced_middleware.tutorial003_py39 import app
@app.get("/large")
async def large():
return PlainTextResponse("x" * 4000, status_code=200)
client = TestClient(app)
def test_middleware():
response = client.get("/large", headers={"accept-encoding": "gzip"})
assert response.status_code == 200, response.text
assert response.text == "x" * 4000
assert response.headers["Content-Encoding"] == "gzip"
assert int(response.headers["Content-Length"]) < 4000
response = client.get("/")
assert response.status_code == 200, response.text
Domain
Subdomains
Functions
Dependencies
Source
Frequently Asked Questions
What does test_tutorial003.py do?
test_tutorial003.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_tutorial003.py?
test_tutorial003.py defines 2 function(s): large, test_middleware.
What does test_tutorial003.py depend on?
test_tutorial003.py imports 3 module(s): responses.py, testclient.py, tutorial003_py39.py.
Where is test_tutorial003.py in the architecture?
test_tutorial003.py is located at tests/test_tutorial/test_advanced_middleware/test_tutorial003.py (domain: FastAPI, subdomain: Applications, directory: tests/test_tutorial/test_advanced_middleware).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free