test_run_module() — fastapi Function Reference
Architecture documentation for the test_run_module() function in test_tutorial011.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD 19a5d2a0_dd5c_614b_68bb_af2febe57f22["test_run_module()"] 0a808897_f38e_f136_3f62_9f9ad8a99999["test_tutorial011.py"] 19a5d2a0_dd5c_614b_68bb_af2febe57f22 -->|defined in| 0a808897_f38e_f136_3f62_9f9ad8a99999 style 19a5d2a0_dd5c_614b_68bb_af2febe57f22 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_tutorial/test_python_types/test_tutorial011.py lines 16–25
def test_run_module(module_name: str):
with patch("builtins.print") as mock_print:
runpy.run_module(f"docs_src.python_types.{module_name}", run_name="__main__")
assert mock_print.call_count == 2
call_args = [str(arg.args[0]) for arg in mock_print.call_args_list]
assert call_args == [
"id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3]",
"123",
]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_run_module() do?
test_run_module() is a function in the fastapi codebase, defined in tests/test_tutorial/test_python_types/test_tutorial011.py.
Where is test_run_module() defined?
test_run_module() is defined in tests/test_tutorial/test_python_types/test_tutorial011.py at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free