test_tutorial008.py — fastapi Source File
Architecture documentation for test_tutorial008.py, a python file in the fastapi codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR d89a1ca6_ecab_9bde_52e7_4b9de668c9f3["test_tutorial008.py"] d1bf66df_8a92_7a7c_dab4_0865060effa4["unittest.mock"] d89a1ca6_ecab_9bde_52e7_4b9de668c9f3 --> d1bf66df_8a92_7a7c_dab4_0865060effa4 a6ed7ac7_2af9_8917_b85d_df393554e8bd["tutorial008_py39.py"] d89a1ca6_ecab_9bde_52e7_4b9de668c9f3 --> a6ed7ac7_2af9_8917_b85d_df393554e8bd f08723a8_0cee_162a_2c4d_c47f19f642e3["process_items"] d89a1ca6_ecab_9bde_52e7_4b9de668c9f3 --> f08723a8_0cee_162a_2c4d_c47f19f642e3 style d89a1ca6_ecab_9bde_52e7_4b9de668c9f3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
from unittest.mock import patch
from docs_src.python_types.tutorial008_py39 import process_items
def test_process_items():
with patch("builtins.print") as mock_print:
process_items({"a": 1.0, "b": 2.5})
assert mock_print.call_count == 4
call_args = [arg.args for arg in mock_print.call_args_list]
assert call_args == [
("a",),
(1.0,),
("b",),
(2.5,),
]
Domain
Subdomains
Functions
Dependencies
- process_items
- tutorial008_py39.py
- unittest.mock
Source
Frequently Asked Questions
What does test_tutorial008.py do?
test_tutorial008.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_tutorial008.py?
test_tutorial008.py defines 1 function(s): test_process_items.
What does test_tutorial008.py depend on?
test_tutorial008.py imports 3 module(s): process_items, tutorial008_py39.py, unittest.mock.
Where is test_tutorial008.py in the architecture?
test_tutorial008.py is located at tests/test_tutorial/test_python_types/test_tutorial008.py (domain: FastAPI, subdomain: Routing, directory: tests/test_tutorial/test_python_types).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free