test(M01): 낡은 품셈재료 단가 시험을 고르기 조건+대표 줄 단가 시험으로 고침

GC000628 시멘트 줄이 고르기 조건으로 바뀌어 「MP000002」 열쇠가 없어진 것 — 데이터는 그대로 두고 시험을 지금 모양에 맞춤(대표 MT004176 줄의 낮은 값 · 후보 수).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JgUhN55Z3BCYhUJTjwTNfj
This commit is contained in:
2026-09-21 21:24:20 +09:00
co-authored by Claude Opus 5
parent fdae511db5
commit bf7764fb99
+6 -5
View File
@@ -375,11 +375,12 @@ def test_못_이은_줄만_거름(client: TestClient) -> None:
assert 0 < cut["total"] < every["total"] and not any(r["연결"] for r in cut["rows"])
def test_품셈재료_단가는_연결의_낮은_값과_출처(client: TestClient) -> None:
key = key_of("GC000628")
one = _get(client, "/api/m01/logic", key=key)
cement = one["prices"][key_of("MP:시멘트")]
assert cement[""] > 0 and cement["출처"].startswith("MT004176" + ".")
def test_재료_고르기_줄_단가는_대표_자재품목의_낮은_값(client: TestClient) -> None:
"""옛 「MP:시멘트」 줄이 고르기 조건+대표로 바뀜 — 값은 대표 자재품목 줄의 낮은 값."""
one = _get(client, "/api/m01/logic", key=key_of("GC000628"))
cond = {"구분": "시멘트·골재", "상세구분": "시멘트", "대표": "MT004176"}
cement = one["prices"][store.cm.mf.cond_text(cond)]
assert cement["ref"] == "MT004176" and cement[""] > 0 and cement["후보"] >= 1
def test_전력은_계약종별을_골라야_값이_섬(client: TestClient) -> None: