- 앞 커밋 글 그대로(층 · 부름 common_util_m02_call · 찾아 넣기 창 StackFind 주입 · 단위 고르기 부품 상자 · 합계 상자 A00 · 기계 칸 부품) - 앞 커밋에서 git add 가 옛 경로에 걸려 고친 파일이 빠짐 — 두 커밋을 같이 올림 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
19 lines
741 B
Python
19 lines
741 B
Python
"""737 단가산출 상세 — 옵션 칸 격자 · 합계 한 줄 바닥 · 비목 상자 지킴 시험(글 대조 · 서버 · 화면 없음) · 799-2 텍스트 수식 보기는 걷음."""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
SHEET_CSS = (ROOT / "A00_Common" / "calc_sheet.css").read_text(encoding="utf-8")
|
|
|
|
|
|
def test_옵션_격자_폭_따라_6_4_3_2_1():
|
|
cols = re.findall(
|
|
r"@container \(min-width: (\d+)px\) \{\s*\.calc-sheet__opts-grid \{\s*grid-template-columns: repeat\((\d), ",
|
|
SHEET_CSS,
|
|
)
|
|
assert cols == [("300", "2"), ("450", "3"), ("600", "4"), ("900", "6")]
|
|
assert "container-type: inline-size" in SHEET_CSS # 창 폭이 아니라 상자 폭 기준
|
|
|
|
|