Merge remote-tracking branch 'origin/sub_laptop_2' into sub_laptop_3

This commit is contained in:
2026-11-04 12:13:51 +09:00
3 changed files with 22 additions and 8 deletions
@@ -43,4 +43,5 @@ def test_굴착기_타이어형_EQ000026_세_길_같음():
fake = Fake()
skpatch._Plan._add_machine(fake, m, {"이름": "x", "단위": "㎥"})
assert fake.got["로직"] != combine.MACHINE["굴착기"] # 굴착기(무한궤도) 기계경비 아님
assert fake.got["입력값"] == {skpatch.MACH_IN: "0211-0060"}
assert _key(fake.got["입력값"]["기계"]) == "EQ000026" and fake.got["수량"] == 0.5
@@ -49,6 +49,11 @@ def test_기계_잇기_뒤_SK_셈_됨():
# 무한궤도 = 굴착기(무한궤도) 기계경비 · 갈래 다른 키 · 없는 키 = 틀림
work.link([{"id": "기계:굴착기#1", "기계": "EQ000019"}])
assert work.doc["더한줄"][-1]["로직"] == combine.MACHINE["굴착기"]
# 연료 · 조종원 없는 부속(부착용 집게 0.6∼0.8) = 손료만 기초(GC000273) · 셈 됨
solo = _plan(whole)
solo.link([{"id": "기계:굴착기", "기계": "EQ000437"}])
assert solo.doc["더한줄"][-1]["로직"] == skpatch.SOLO[(False, False)]
assert calc.run(solo.doc, whole)["기준"] is not None
work.lost = _plan(whole).lost
with pytest.raises(skpatch.LinkError):
work.link([{"id": "기계:굴착기", "기계": "MT000010"}])