test(794-2b): 근거 제안 listing · block 이 같은 폴더 다른 HP 저장본과 대조해 판 차이 강함 표지
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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("판 차이 강함")
|
||||
|
||||
Reference in New Issue
Block a user