- 화면(줄 쌓기 머리 · 구조물 카드 › 사본 단가산출): 할일 단추 · 확인 창(askJob) · 바뀐 자원 줄 · 프로젝트 층 바뀜 배지 걷음 · 글 키 13 걷음 · 머리 띠의 프로젝트 「M01 새 판」 갈래 걷음 - 서버 수식 길: `할일` 단가갱신 · 재생성 받으면 400 · 미리 셈 답 바뀐자원 · 버림 · 사본없음 걷음 · `current` · `_settled` 할일 인자 걷음 - `M02_Doc_Sk.settle` · `M02_Sangeun_Copy.settle` · `_formula_job` 의 단가갱신 갈래 · `M02_Doc_Copy.refresh` 걷음 (서버 안 재생성 = 서고 합치기 · 불러온 식 초기화가 씀 → 남김 · `skc.refresh` = 일위대가 `M02_Labor_Copy` 가 씀 → 남김) - 사본 글: 「고침은 M02 에서 고친 뒤 구조물 다시 지정」 - 시험: 단가갱신 · 재생성 수식 길만 보던 줄 · 시험(802_4a ③ ④ · 822_1 · 826_3 재생성 · 795_1 · 804_4 · 821_1 · 821_3 · 827_1) 걷음 · 값 그대로 · 단가새값 단언은 남김 · 소스 글자 시험(804_6 · 804_7) 지움 · 856_0 프로젝트 「M01 새 판」 = 띠 없음 - 821_1: 층 SK 는 내 기계 고침을 안 따라감(시험 고정 renew off) — 고친 뒤 값 = 사본 값 그대로로 고쳐 씀 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
2.5 KiB
Python
64 lines
2.5 KiB
Python
"""804-6(요구 686-1) — 옛 수식 문서 탭 걷음 · 줄 쌓기 = 첫 「수식」 탭 지킴.
|
|
|
|
① 걷은 파일 없고 부르는 곳 없음 ② M01 · M02 보기 = 수식(줄 쌓기) · 단가산출 상세
|
|
③ 줄 쌓기가 사본 [단가 갱신] · [재생성] · 판 바뀜 다시 저장을 이어 받음.
|
|
"""
|
|
|
|
from __future__ import annotations
|
|
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
GONE = [
|
|
"A00_Common/formula_doc_screen.ts",
|
|
"A00_Common/formula_doc_defs.ts",
|
|
"A00_Common/formula_doc_edit.ts",
|
|
"A00_Common/formula_doc_lines.ts",
|
|
"A00_Common/formula_doc_math.ts",
|
|
"A00_Common/formula_doc_math_model.ts",
|
|
"A00_Common/formula_doc_rows.ts",
|
|
"A00_Common/formula_doc_sub.ts",
|
|
"A00_Common/formula_doc.css",
|
|
"A00_Common/sheet_formula_cell.ts",
|
|
"M01_MasterData/M01_MasterData_UI_LogicLab_Equation.ts",
|
|
"M01_MasterData/M01_MasterData_UI_LogicLab_Equation.css",
|
|
"M01_MasterData/M01_MasterData_UI_LogicLab_EquationDefs.ts",
|
|
"M01_MasterData/M01_MasterData_UI_LogicLab_EquationVar.ts",
|
|
"M01_MasterData/logic/M01_Logic_Equation_Model.ts",
|
|
"ui_template/ui_template_equation_defs.ts",
|
|
"ui_template/ui_template_equation_edit.ts",
|
|
]
|
|
|
|
|
|
def _text(rel: str) -> str:
|
|
return (ROOT / rel).read_text(encoding="utf-8")
|
|
|
|
|
|
def test_걷은_파일_없고_부르는_곳_없음():
|
|
assert not [g for g in GONE if (ROOT / g).exists()]
|
|
names = [Path(g).name.rsplit(".", 1)[0] for g in GONE]
|
|
out = subprocess.run(
|
|
["git", "-c", "core.quotepath=off", "ls-files", "*.ts", "*.css", "*.html"],
|
|
cwd=ROOT, capture_output=True, text=True, encoding="utf-8", check=True,
|
|
).stdout # fmt: skip
|
|
for rel in out.splitlines():
|
|
if rel.startswith(("docs/", "tmp/")) or not (ROOT / rel).exists():
|
|
continue
|
|
text = (ROOT / rel).read_text(encoding="utf-8", errors="ignore")
|
|
for n in names:
|
|
assert f'/{n}"' not in text and f"{n}.css" not in text, (rel, n)
|
|
|
|
|
|
def test_보기_수식은_줄쌓기_첫탭():
|
|
for rel in ("M02_MasterTemplete/M02_MasterTemplete_Sangeun_Tabs.ts",):
|
|
src = _text(rel)
|
|
assert "createSegment" not in src and '"equation"' not in src, rel # 836-3 고르기 없음
|
|
lab = _text("M01_MasterData/M01_MasterData_UI_LogicLab.ts")
|
|
assert "createStackScreen({" in lab and "createDocScreen" not in lab
|
|
|
|
|
|
def test_줄쌓기_700_줄():
|
|
src = _text("A00_Common/line_stack_screen.ts")
|
|
assert len(src.splitlines()) <= 700
|