mirror of https://github.com/tiangolo/fastapi.git
Delete tests/test_router_circular_import.py
This commit is contained in:
parent
26278c37b4
commit
e4871bc4d5
|
|
@ -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…
Reference in New Issue