- map_layer_list = 겹 스물셋 · 처음 값 · 페이지 표(d03 · b05 보일 겹 · 처음 켬 · 취향 열쇠 — A② · A⑨) - map_layer_specs = GL 겹 꼴 · 차례(D03 UI_MapGl 에서 옮김 · 선 겹 꼴은 LINE_LAYERS 한 벌) - map_layer_bar = 겹 단추 줄 · 켬끔 · 취향 · 그래픽 카드 단추 / map_legend = 범례 칸 · 조각 겹 범례 - map_forest_layers = D03_UI_ForestLayers 옮김(이름만) - D03 UI_Layers 683 → 639 줄 · UI_MapGl 423 → 115 줄 · UI_LayerDefs 는 캔버스 도움 + 옛 이름 다시 내놓음 - 시험 길 고침(553-4 · 581-2 · 584-1 · 584-3 · 606-1 · 615 · 622-2) — 옮긴 파일 자리 · 553-4 겹 목록은 622-2 때 낡은 것(국유림 임도 · 경제림 · 생태자연도 빠짐) 같이 고침 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 lines
1.5 KiB
Python
41 lines
1.5 KiB
Python
"""606-1 위성 바탕 밝기 지킴 — D03 위성 칠에 밝기 상한 · 채도 · 사용자 조절 칸 · 갈래 굵기 3 (B04 · B05 위성은 그대로).
|
|
|
|
./venv/Scripts/python.exe -m pytest resources/tester/test_606_1_sat_light.py -q
|
|
"""
|
|
|
|
import re
|
|
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
read = lambda rel: (ROOT / rel).read_text(encoding="utf-8") # noqa: E731
|
|
|
|
MAPGL = read("A00_Common/map/map_layer_specs.ts") # 624-2 GL 겹 꼴 = 공용
|
|
LIGHT = read("D03_PlanAnalysis/D03_PlanAnalysis_UI_SatLight.ts")
|
|
LAYERS = read("D03_PlanAnalysis/D03_PlanAnalysis_UI_Layers.ts")
|
|
|
|
|
|
def test_위성_칠에_밝기_채도():
|
|
assert re.search(r'raster\("satellite", 1, \{[^}]*"raster-brightness-max": light', MAPGL)
|
|
assert '"raster-saturation": SAT_SATURATION' in MAPGL
|
|
|
|
|
|
def test_밝기_처음값은_어둡게_범위_안():
|
|
m = {k: float(v) for k, v in re.findall(r"SAT_LIGHT_(MIN|MAX|DEFAULT) = ([\d.]+)", LIGHT)}
|
|
assert m["MIN"] < m["DEFAULT"] < m["MAX"] == 1
|
|
|
|
|
|
def test_조절_칸은_GL_위성_켠_때만_기억():
|
|
assert "createSatLightRow(" in LAYERS
|
|
assert "glOn && on.satellite" in LAYERS
|
|
assert "aislo:pref:d03.satellite-light" in LIGHT
|
|
|
|
|
|
def test_갈래_굵기_3():
|
|
paint = read("D03_PlanAnalysis/D03_PlanAnalysis_UI_DrawPaint.ts")
|
|
assert "const width = 3;" in paint
|
|
assert "branch ? 2.5" not in paint
|
|
|
|
|
|
def test_공용_GL_바탕은_안_바뀜():
|
|
assert "brightness" not in read("ui_template/ui_template_gl_map.ts")
|