From 28fa21fd1a1d08c2e6ee715feb3d979bf2662cf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez=20Castro?= <72013291+JavierSanchezCastro@users.noreply.github.com> Date: Thu, 30 Oct 2025 13:05:57 +0100 Subject: [PATCH] Update tests/test_router_circular_import.py Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> --- tests/test_router_circular_import.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_router_circular_import.py b/tests/test_router_circular_import.py index f74a49109..a00205b39 100644 --- a/tests/test_router_circular_import.py +++ b/tests/test_router_circular_import.py @@ -1,11 +1,9 @@ import pytest -from fastapi import APIRouter, FastAPI +from fastapi import APIRouter def test_router_circular_import(): - app = FastAPI() router = APIRouter() - app.include_router(router) with pytest.raises(AssertionError, match="Cannot include router into itself"): router.include_router(router)