test_openapi_model_description_trim_on_formfeed.py — fastapi Source File
Architecture documentation for test_openapi_model_description_trim_on_formfeed.py, a python file in the fastapi codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 59cfbf94_e94d_7ebf_f5e8_e5ac9a675a44["test_openapi_model_description_trim_on_formfeed.py"] 534f6e44_61b8_3c38_8b89_6934a6df9802["__init__.py"] 59cfbf94_e94d_7ebf_f5e8_e5ac9a675a44 --> 534f6e44_61b8_3c38_8b89_6934a6df9802 a7c04dee_ee23_5891_b185_47ff6bed036d["testclient.py"] 59cfbf94_e94d_7ebf_f5e8_e5ac9a675a44 --> a7c04dee_ee23_5891_b185_47ff6bed036d 6913fbd4_39df_d14b_44bb_522e99b65b90["pydantic"] 59cfbf94_e94d_7ebf_f5e8_e5ac9a675a44 --> 6913fbd4_39df_d14b_44bb_522e99b65b90 style 59cfbf94_e94d_7ebf_f5e8_e5ac9a675a44 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from fastapi import FastAPI
from fastapi.testclient import TestClient
from pydantic import BaseModel
app = FastAPI()
class MyModel(BaseModel):
"""
A model with a form feed character in the title.
\f
Text after form feed character.
"""
@app.get("/foo")
def foo(v: MyModel): # pragma: no cover
pass
client = TestClient(app)
def test_openapi():
response = client.get("/openapi.json")
assert response.status_code == 200, response.text
openapi_schema = response.json()
assert openapi_schema["components"]["schemas"]["MyModel"]["description"] == (
"A model with a form feed character in the title.\n"
)
Domain
Subdomains
Functions
Classes
Dependencies
- __init__.py
- pydantic
- testclient.py
Source
Frequently Asked Questions
What does test_openapi_model_description_trim_on_formfeed.py do?
test_openapi_model_description_trim_on_formfeed.py is a source file in the fastapi codebase, written in python. It belongs to the FastAPI domain, Routing subdomain.
What functions are defined in test_openapi_model_description_trim_on_formfeed.py?
test_openapi_model_description_trim_on_formfeed.py defines 2 function(s): foo, test_openapi.
What does test_openapi_model_description_trim_on_formfeed.py depend on?
test_openapi_model_description_trim_on_formfeed.py imports 3 module(s): __init__.py, pydantic, testclient.py.
Where is test_openapi_model_description_trim_on_formfeed.py in the architecture?
test_openapi_model_description_trim_on_formfeed.py is located at tests/test_openapi_model_description_trim_on_formfeed.py (domain: FastAPI, subdomain: Routing, directory: tests).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free