mirror of
https://github.com/ThearchyHelios/AgentLab.git
synced 2026-11-15 00:21:58 +00:00
撤回上一条(定时评测测试放大数据源上限):评测包 an2/b 的 5d53ed73 做了同一处修改,留着合并时会撞同一个夹具;这里撤回,合并后照 an2/b 那一份
This commit is contained in:
@@ -39,12 +39,7 @@ URL = "https://hooks.example.com/agentlab/eval-7c2a"
|
|||||||
|
|
||||||
|
|
||||||
@pytest.fixture(autouse=True)
|
@pytest.fixture(autouse=True)
|
||||||
async def engine_up(monkeypatch):
|
async def engine_up():
|
||||||
# 同 test_eval_runner:同一个测试进程里别的测试建的数据源可能超过评测拍目录快照的上限(app/eval/snapshots.MAX_SOURCES),
|
|
||||||
# 评测会按设计在作答前就失败(「数据源超过 20 个」),止损那两条就判不出「部分完成」。这里的评测不测这个上限
|
|
||||||
from app.eval import snapshots
|
|
||||||
|
|
||||||
monkeypatch.setattr(snapshots, "MAX_SOURCES", 10_000)
|
|
||||||
await run_manager.setup()
|
await run_manager.setup()
|
||||||
async with SessionLocal() as session:
|
async with SessionLocal() as session:
|
||||||
await session.execute(delete(Schedule))
|
await session.execute(delete(Schedule))
|
||||||
|
|||||||
Reference in New Issue
Block a user