Delete tests/test_router_circular_import.py

This commit is contained in:
Javier Sánchez Castro 2025-11-24 01:10:21 +01:00 committed by GitHub
parent 26278c37b4
commit e4871bc4d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 12 deletions

View File

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