test_tutorial003_04.py — fastapi Source File
Architecture documentation for test_tutorial003_04.py, a python file in the fastapi codebase. 5 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f["test_tutorial003_04.py"] 294a3f95_9dcc_7a36_dcea_ec0a967e0989["utils"] f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f --> 294a3f95_9dcc_7a36_dcea_ec0a967e0989 83e01a9c_50a9_bec9_6f86_8e729106de01["importlib"] f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f --> 83e01a9c_50a9_bec9_6f86_8e729106de01 5befe8bf_65d1_d058_6b78_4a597a8488e9["pytest"] f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f --> 5befe8bf_65d1_d058_6b78_4a597a8488e9 01c652c5_d85c_f45e_848e_412c94ea4172["exceptions.py"] f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f --> 01c652c5_d85c_f45e_848e_412c94ea4172 2d54c1ec_3e75_6f8e_face_5433598e4278["FastAPIError"] f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f --> 2d54c1ec_3e75_6f8e_face_5433598e4278 style f4ecf1ef_7ee3_c7d5_8624_fb598a369c3f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import importlib
import pytest
from fastapi.exceptions import FastAPIError
from ...utils import needs_py310
@pytest.mark.parametrize(
"module_name",
[
pytest.param("tutorial003_04_py39"),
pytest.param("tutorial003_04_py310", marks=needs_py310),
],
)
def test_invalid_response_model(module_name: str) -> None:
with pytest.raises(FastAPIError):
importlib.import_module(f"docs_src.response_model.{module_name}")
Domain
Subdomains
Functions
Dependencies
- FastAPIError
- exceptions.py
- importlib
- pytest
- utils
Source
Frequently Asked Questions
What does test_tutorial003_04.py do?
test_tutorial003_04.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_tutorial003_04.py?
test_tutorial003_04.py defines 1 function(s): test_invalid_response_model.
What does test_tutorial003_04.py depend on?
test_tutorial003_04.py imports 5 module(s): FastAPIError, exceptions.py, importlib, pytest, utils.
Where is test_tutorial003_04.py in the architecture?
test_tutorial003_04.py is located at tests/test_tutorial/test_response_model/test_tutorial003_04.py (domain: FastAPI, subdomain: Routing, directory: tests/test_tutorial/test_response_model).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free