correct error msg

This commit is contained in:
Javier Sánchez 2025-10-30 10:54:18 +01:00
parent ddfaa1e441
commit c0fee03fdf
1 changed files with 1 additions and 1 deletions

View File

@ -7,5 +7,5 @@ def test_router_circular_import():
router = APIRouter()
app.include_router(router)
with pytest.raises(AssertionError, match="Router cannot be the same as parent"):
with pytest.raises(AssertionError, match="Cannot include router into itself"):
router.include_router(router)