test_router_circular_import() — fastapi Function Reference
Architecture documentation for the test_router_circular_import() function in test_router_circular_import.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD c59de6b3_52d1_8027_fbe7_13813832afec["test_router_circular_import()"] 02800cc2_ca43_0c3b_91f4_3162126b8a1d["test_router_circular_import.py"] c59de6b3_52d1_8027_fbe7_13813832afec -->|defined in| 02800cc2_ca43_0c3b_91f4_3162126b8a1d style c59de6b3_52d1_8027_fbe7_13813832afec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_router_circular_import.py lines 5–12
def test_router_circular_import():
router = APIRouter()
with pytest.raises(
AssertionError,
match="Cannot include the same APIRouter instance into itself. Did you mean to include a different router?",
):
router.include_router(router)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_router_circular_import() do?
test_router_circular_import() is a function in the fastapi codebase, defined in tests/test_router_circular_import.py.
Where is test_router_circular_import() defined?
test_router_circular_import() is defined in tests/test_router_circular_import.py at line 5.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free