From f9be394a99009f3642e145ab07ddce1ce72a7434 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Wed, 21 Oct 2026 18:40:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E5=9B=9E=E4=B8=8A=E4=B8=80=E6=9D=A1?= =?UTF-8?q?=EF=BC=88=E5=AE=9A=E6=97=B6=E8=AF=84=E6=B5=8B=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=94=BE=E5=A4=A7=E6=95=B0=E6=8D=AE=E6=BA=90=E4=B8=8A=E9=99=90?= =?UTF-8?q?=EF=BC=89=EF=BC=9A=E8=AF=84=E6=B5=8B=E5=8C=85=20an2/b=20?= =?UTF-8?q?=E7=9A=84=205d53ed73=20=E5=81=9A=E4=BA=86=E5=90=8C=E4=B8=80?= =?UTF-8?q?=E5=A4=84=E4=BF=AE=E6=94=B9=EF=BC=8C=E7=95=99=E7=9D=80=E5=90=88?= =?UTF-8?q?=E5=B9=B6=E6=97=B6=E4=BC=9A=E6=92=9E=E5=90=8C=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=A4=B9=E5=85=B7=EF=BC=9B=E8=BF=99=E9=87=8C=E6=92=A4=E5=9B=9E?= =?UTF-8?q?=EF=BC=8C=E5=90=88=E5=B9=B6=E5=90=8E=E7=85=A7=20an2/b=20?= =?UTF-8?q?=E9=82=A3=E4=B8=80=E4=BB=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_eval_schedule.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/tests/test_eval_schedule.py b/backend/tests/test_eval_schedule.py index ccfd46be..a999e294 100644 --- a/backend/tests/test_eval_schedule.py +++ b/backend/tests/test_eval_schedule.py @@ -39,12 +39,7 @@ URL = "https://hooks.example.com/agentlab/eval-7c2a" @pytest.fixture(autouse=True) -async def engine_up(monkeypatch): - # 同 test_eval_runner:同一个测试进程里别的测试建的数据源可能超过评测拍目录快照的上限(app/eval/snapshots.MAX_SOURCES), - # 评测会按设计在作答前就失败(「数据源超过 20 个」),止损那两条就判不出「部分完成」。这里的评测不测这个上限 - from app.eval import snapshots - - monkeypatch.setattr(snapshots, "MAX_SOURCES", 10_000) +async def engine_up(): await run_manager.setup() async with SessionLocal() as session: await session.execute(delete(Schedule))