- `test_733_3_library_same_screen::test_나무_메뉴_서버_길_짝` 지움 — 라우터 · 화면 · main.py 소스에 길 글자가 그대로 있는지만 봄(글자 시험 규칙) · 같은 길 동작은 test_733_3_library_same_merge · test_858_shelf_golden(합치기 · 되돌림 길 답 지문)이 봄 - 남김: test_부품만_씀(부품 상자 규칙 시험) · test_721_find_pick::test_736_2(Find_Pick · Labor_Unlinked 글자 섞임 — 시험 한 바퀴 창 몫과 겹쳐 손 안 댐) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
961 B
Python
21 lines
961 B
Python
"""서고 [중복 찾기] 화면 지킴(PLAN 733-3) — 부품 상자만 · 날 색 없음."""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
M02 = ROOT / "M02_MasterTemplete"
|
|
TS = (M02 / "M02_MasterTemplete_Library_Same.ts").read_text(encoding="utf-8")
|
|
CSS = (M02 / "M02_MasterTemplete_Library_Same.css").read_text(encoding="utf-8")
|
|
RAW_COLOR = re.compile(r"#[0-9a-fA-F]{3,8}\b|\brgba?\(|\bhsla?\(")
|
|
|
|
|
|
def test_부품만_씀():
|
|
for part in ("openModal", "askConfirm", "createTable", "createButton", "createBadge"):
|
|
assert part in TS, f"부품 {part} 를 안 씀"
|
|
assert "<button" not in TS and "<input" not in TS
|
|
assert not re.search(r"""createElement\(["'](button|input|table)""", TS)
|
|
assert not RAW_COLOR.search(CSS)
|
|
for sel in (".ui-btn", ".ui-table", ".ui-badge", "button", "table", "th", "td"):
|
|
assert not re.search(rf"(^|[\s,]){re.escape(sel)}\b", CSS), f"CSS 가 {sel} 꼴을 만짐"
|