fix(M01): 자재품목 구분→상세구분 거름 살림 · 로직 키 열기 코드 재확인

머리에 구분 묶음이 등록 안 된 파일(재료_자재품목)은 subs() 가 줄에서 바로
구분·상세구분을 모으게 고침 · 화면은 자재품목도 인력·기계와 같은 2단
거름을 씀. 로직 키 직접 열기(openKeyOn)는 이미 전체 로직 목록에서 찾아
여는 구조라 쪽 나눔의 영향을 안 받음 — 0331bb4d 코드 재확인.
This commit is contained in:
2026-09-20 23:29:21 +09:00
parent 709ccbd73d
commit 5cdfbefa54
3 changed files with 30 additions and 10 deletions
+5 -1
View File
@@ -362,7 +362,11 @@ def test_구분_목록(client: TestClient) -> None:
assert machine["slot"] == "구분" and names[0] == "[00]토공기계" and names[-1] == "임업기계"
earthwork = next(s for s in machine["subs"] if s["name"] == "[00]토공기계")
assert earthwork["book"] == "건설품셈" and "불도저" in earthwork["details"]
assert _get(client, "/api/m01/subs", file="재료_자재품목.json")["subs"] == []
material = _get(client, "/api/m01/subs", file="재료_자재품목.json")
material_names = [s["name"] for s in material["subs"]]
assert "기계·설비" in material_names
steel = next(s for s in material["subs"] if s["name"] == "철근·강재")
assert steel["details"]
def test_못_이은_줄만_거름(client: TestClient) -> None: