From 833d206fb2bfba7bc3658411139fa413c0756360 Mon Sep 17 00:00:00 2001 From: ThearchyHelios Date: Tue, 6 Oct 2026 11:37:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E6=8D=AE=E6=8E=A5=E5=8F=A3=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=B7=9F=E4=B8=8A=E6=9C=9F=204=20=E5=90=88=E5=B9=B6?= =?UTF-8?q?=EF=BC=9A=E5=8F=8D=E6=96=B9=E5=AE=A1=E7=A8=BF=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=9A=84=E4=BA=A7=E5=87=BA=E5=B8=A6=E7=9D=80=20unreviewed?= =?UTF-8?q?=EF=BC=88=E6=B2=A1=E8=83=BD=E5=8F=8D=E6=9F=A5=E7=9A=84=E5=8F=A5?= =?UTF-8?q?=E6=95=B0=EF=BC=89=EF=BC=8C=E5=8F=A5=E5=AD=90=E7=9A=84=20challe?= =?UTF-8?q?nge=20=E7=85=A7=E6=A0=B7=E5=B8=A6=E4=B8=8A=EF=BC=8C=E4=B8=A4?= =?UTF-8?q?=E6=9D=A1=E6=95=B4=E5=8F=A5=E6=AF=94=E5=AF=B9=E7=9A=84=E6=9C=9F?= =?UTF-8?q?=E6=9C=9B=E8=A1=A5=E4=B8=8A=E8=BF=99=E4=B8=AA=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/tests/test_evidence_verify_status.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/backend/tests/test_evidence_verify_status.py b/backend/tests/test_evidence_verify_status.py index 280967da..8d62960d 100644 --- a/backend/tests/test_evidence_verify_status.py +++ b/backend/tests/test_evidence_verify_status.py @@ -310,9 +310,12 @@ async def test_a_challenged_sentence_carries_the_verdict(client, monkeypatch, sa output = await challenge_output(run.id) record = output["challenge_artifact"] south = (await sentence(client, run.id, SOUTH))["unit"]["challenge"] - # counts 是整份报告的审稿计数(节点产出里的那一份):一句被推翻、一句被削弱,不是只数这一句 + # counts 是整份报告的审稿计数(节点产出里的那一份):一句被推翻、一句被削弱,不是只数这一句;节点产出带着 + # unreviewed(没能反查的句数,这里两句都查了),照样带上 assert south == {"verdict": "refuted", "node_id": "chal", "artifact": record, "on_refuted": "degrade", - "report_label": "写周报", "counts": {"stands": 0, "weakened": 1, "refuted": 1, "inconclusive": 0}} + "report_label": "写周报", "counts": {"stands": 0, "weakened": 1, "refuted": 1, "inconclusive": 0}, + "unreviewed": 0} + assert south["unreviewed"] == output["unreviewed"] assert south["counts"] == output["counts"] # 点开句子里的数字,片段接口答的这一句同样带着判断 east = (await segment(client, run.id, "1,500"))["unit"]["challenge"] @@ -334,7 +337,8 @@ async def test_a_lost_review_record_still_shows_the_listed_verdicts(client, monk assert (await challenge_output(run.id))["challenge_artifact"] is None south = (await sentence(client, run.id, SOUTH))["unit"]["challenge"] assert south == {"verdict": "refuted", "node_id": "chal", "artifact": None, "on_refuted": "degrade", - "report_label": "写周报", "counts": {"stands": 0, "weakened": 1, "refuted": 1, "inconclusive": 0}} + "report_label": "写周报", "counts": {"stands": 0, "weakened": 1, "refuted": 1, "inconclusive": 0}, + "unreviewed": 0} async def test_a_review_that_stopped_the_run_still_marks_its_sentences(client, monkeypatch, sales):