test_uvicorn_run_is_not_called_on_import() — fastapi Function Reference
Architecture documentation for the test_uvicorn_run_is_not_called_on_import() function in test_tutorial001.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD c57ea186_f4f1_fc26_f2c9_2919f96848e1["test_uvicorn_run_is_not_called_on_import()"] 03bf4966_0b63_ba47_3315_0b938c7f27fa["test_tutorial001.py"] c57ea186_f4f1_fc26_f2c9_2919f96848e1 -->|defined in| 03bf4966_0b63_ba47_3315_0b938c7f27fa style c57ea186_f4f1_fc26_f2c9_2919f96848e1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_debugging/test_tutorial001.py lines 20–25
def test_uvicorn_run_is_not_called_on_import():
if sys.modules.get(MOD_NAME):
del sys.modules[MOD_NAME] # pragma: no cover
with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock:
importlib.import_module(MOD_NAME)
uvicorn_run_mock.assert_not_called()
Domain
Subdomains
Source
Frequently Asked Questions
What does test_uvicorn_run_is_not_called_on_import() do?
test_uvicorn_run_is_not_called_on_import() is a function in the fastapi codebase, defined in tests/test_tutorial/test_debugging/test_tutorial001.py.
Where is test_uvicorn_run_is_not_called_on_import() defined?
test_uvicorn_run_is_not_called_on_import() is defined in tests/test_tutorial/test_debugging/test_tutorial001.py at line 20.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free