new msg error

This commit is contained in:
Javier Sánchez 2025-10-30 13:10:11 +01:00
parent 4c9cf7439f
commit 6762879a3a
1 changed files with 1 additions and 1 deletions

View File

@ -5,5 +5,5 @@ from fastapi import APIRouter
def test_router_circular_import():
router = APIRouter()
with pytest.raises(AssertionError, match="Cannot include router into itself"):
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)