fix(b06,b07): 표 위 CAD 배수관 원형 마크 — 아래 수직 지시선 없앰 (274-1)

- B06 상세 모달 표 위 CAD 미리 넣음(pipeMark)과 B07 짝(_pipe_mark) 모두 원 + 원 안 세 줄만
- 요구 169 원문 기록 · 시험 260 · 265 기대값 맞춤

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LLCk2y5xE8YGVgjbTntWsY
This commit is contained in:
2026-10-11 20:56:17 +09:00
co-authored by Claude Opus 5.5
parent dfd7427c46
commit 7b5ee62a42
5 changed files with 12 additions and 22 deletions
+4 -4
View File
@@ -104,7 +104,7 @@ def _labels(entities: list[dict]) -> list[str]:
def test_관_유입_유출_도수로_한_벌(out):
"""그림(162-21) 꼴 — 원 안 세 줄 · 오른쪽 측점 · 구조물 조합 줄(265-2)."""
full = out["full"]
assert [entity["type"] for entity in full[:2]] == ["Circle", "Line"]
assert [entity["type"] for entity in full[:2]] == ["Circle", "Text"] # 지시선 없음(169)
assert _labels(full) == [
"배수관",
"Φ1200m/m",
@@ -114,7 +114,7 @@ def test_관_유입_유출_도수로_한_벌(out):
"돌붙임 찰붙임",
]
# 원 안 = 가운데 맞춤 · 원 중심 x · 오른쪽 = 왼쪽 맞춤 · 줄 3.0 간격 · 붉은 계열 · 기본 층
inside, right = full[2:5], full[5:]
inside, right = full[1:4], full[4:]
assert {(e["align"], e["x"]) for e in inside} == {("center", full[0]["x"])}
assert [e["y"] for e in right] == [-1.5, -4.5, -7.5]
assert {e["x"] for e in right} == {15}
@@ -449,8 +449,8 @@ def test_칸_없음_만_미리_넣음_지운_칸_옛_글_설계없음_이웃은_
assert seeded is not design and "structure_note_cad" not in design # 저장 설계는 안 바뀜
labels = [e["shapeData"].get("label") for e in seeded["structure_note_cad"]["entities"]]
# 관 조합 미지정 = 원형 마크 · 측점(배관은 조합 글 줄 없음) · 이어서 좌측 패널 옵션 줄(166-1)
assert labels[2:6] == ["배수관", "Φ1200m/m", "L=22m", "NO.71+13"]
assert labels[6].startswith("관: 관경 1200") and all(": " in line for line in labels[6:])
assert labels[1:5] == ["배수관", "Φ1200m/m", "L=22m", "NO.71+13"]
assert labels[5].startswith("관: 관경 1200") and all(": " in line for line in labels[5:])
cleared = {**design, "structure_note_cad": {"entities": []}}
assert with_structure_note(cleared, 1433.0, sources, "x") is cleared
old = {**design, "structure_note": "옛 글"}
+1 -1
View File
@@ -146,7 +146,7 @@ def test_구조물_여럿_글은_조합_이름_미지정_배관_본체_뺌_TS_
full, bare, none = mirrored
assert full["lines"] == _LINES
# 배관 = 원형 마크(원 안 배수관 · Φ · L 정수) · 오른쪽 측점 + 조합 줄
assert [e["type"] for e in full["entities"][:2]] == ["Circle", "Line"]
assert [e["type"] for e in full["entities"][:2]] == ["Circle", "Text"] # 지시선 없음(169)
assert _labels(full["entities"]) == ["배수관", "Φ800m/m", "L=9m", "NO.2", *_LINES]
assert "흄관 1200" not in _labels(full["entities"])
# 원형 마크 없음(관 없는 구조물 측점) = 측점 + 줄 · 구조물 없는 측점 = 빈 도면