From 28ed218d3422cad317c23ab51eacadda41a8e940 Mon Sep 17 00:00:00 2001 From: umsangdon Date: Thu, 5 Nov 2026 19:46:05 +0900 Subject: [PATCH] =?UTF-8?q?test(794-2b):=20=EA=B7=BC=EA=B1=B0=20=EC=A0=9C?= =?UTF-8?q?=EC=95=88=20listing=20=C2=B7=20block=20=EC=9D=B4=20=EA=B0=99?= =?UTF-8?q?=EC=9D=80=20=ED=8F=B4=EB=8D=94=20=EB=8B=A4=EB=A5=B8=20HP=20?= =?UTF-8?q?=EC=A0=80=EC=9E=A5=EB=B3=B8=EA=B3=BC=20=EB=8C=80=EC=A1=B0?= =?UTF-8?q?=ED=95=B4=20=ED=8C=90=20=EC=B0=A8=EC=9D=B4=20=EA=B0=95=ED=95=A8?= =?UTF-8?q?=20=ED=91=9C=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- resources/tester/test_794_2b_edition.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/resources/tester/test_794_2b_edition.py b/resources/tester/test_794_2b_edition.py index d2c06acac..e9a07fc2f 100644 --- a/resources/tester/test_794_2b_edition.py +++ b/resources/tester/test_794_2b_edition.py @@ -127,3 +127,26 @@ def test_뒤채움_두_파일_판_차이_강함(): lab for c in chk.strong({"8": a}, [{"28": b}])["8"]["근거후보"] for lab, _ in c["까닭"] ] assert "판 차이 강함('25 보완 · 파일 2024)" in marks + + +def test_listing_다른_HP_대조(monkeypatch): + mine = { + "1": { + "근거후보": [ + {"기초": "GC1", "판": "'25 보완 · 파일 2024", "까닭": [["그 밖", "보통인부 ×1.98"]]} + ] + } + } + other = { + "9": { + "근거후보": [ + {"기초": "GC1", "판": "'25 보완 · 파일 2025", "까닭": [["그 밖", "보통인부 ×1.98"]]} + ] + } + } + got = {"HP-000001": mine, "HP-000002": other, "HP-000003": None} + monkeypatch.setattr(store, "solved", lambda folder, key: got[key]) + monkeypatch.setattr(store.hopyo_store, "rows", lambda folder: [{"키": k} for k in got]) + out = store.listing("x", "HP-000001") + assert out["블록"]["1"]["근거후보"][0]["까닭"][0][0] == "판 차이 강함('25 보완 · 파일 2024)" + assert store.block("x", "HP-000001", 1)["근거후보"][0]["까닭"][0][0].startswith("판 차이 강함")