Browse Source

Delete tests/test_router_circular_import.py

pull/14400/head
Javier Sánchez Castro 7 months ago
committed by GitHub
parent
commit
e4871bc4d5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 12
      tests/test_router_circular_import.py

12
tests/test_router_circular_import.py

@ -1,12 +0,0 @@
import pytest
from fastapi import APIRouter
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)
Loading…
Cancel
Save