Browse Source

new msg error

pull/14258/head
Javier Sánchez 8 months ago
parent
commit
6762879a3a
  1. 2
      tests/test_router_circular_import.py

2
tests/test_router_circular_import.py

@ -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)

Loading…
Cancel
Save