From c46ff74b8c4224f88c6dd154efe9e06a090b5dd4 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Sat, 3 Oct 2026 11:10:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=89=96=E6=9E=90=E7=9A=84?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=95=B0=E6=8D=AE=E6=BA=90=E7=94=A8=E5=AE=8C?= =?UTF-8?q?=E4=B9=9F=E5=88=A0=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_catalog_profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/tests/test_catalog_profile.py b/backend/tests/test_catalog_profile.py index b87c7e2b..c88d1c82 100644 --- a/backend/tests/test_catalog_profile.py +++ b/backend/tests/test_catalog_profile.py @@ -24,11 +24,11 @@ from sqlalchemy.engine import Engine from app.data import catalog, catalog_profile from app.data import engine as data_engine from app.data.catalog_profile import PROFILE_OPTION, ProfileSettings -from app.data.engine import engines from app.db.base import SessionLocal from app.db.models import DataSource from app.main import app as _fastapi_app from tests.fixtures.catalog import scenic +from tests.fixtures.sources import drop_source ACTOR = {"X-Actor": quote("周宁")} @@ -65,7 +65,7 @@ async def make_source(client): yield _make for sid in made: - await engines.invalidate(sid) + await drop_source(sid) class _Spy: