feat: refine repeated dual-QR header

This commit is contained in:
user
2026-07-16 10:11:55 +02:00
parent 462ce93968
commit c40ea35fc3
2 changed files with 318 additions and 209 deletions
+5 -1
View File
@@ -84,7 +84,7 @@ def check_render() -> None:
tex = tex_path.read_text(encoding="utf-8")
html = html_path.read_text(encoding="utf-8")
for marker in ("DEMO-01", "IP WO", "INF04", "KARTA PRACY"):
for marker in ("DEMO-01", "IP WO", "INF04", "System kart pracy"):
if marker not in tex:
raise AssertionError(f"TeX nie zawiera znacznika {marker!r}")
if marker not in html:
@@ -104,6 +104,10 @@ def check_render() -> None:
for marker in ("resource-qr-repository", "resource-qr-page"):
if marker not in html:
raise AssertionError(f"HTML nie zawiera komórki {marker!r}")
if "PROJECT" not in html:
raise AssertionError("HTML nie zawiera nowej tabliczki projektu")
if "resource-qr-label" in html:
raise AssertionError("HTML nadal zawiera podpis pod kodem QR")
for marker in ('class="title-qr"', 'class="code-subblock"'):
if marker not in html:
raise AssertionError(f"HTML nie zawiera znacznika {marker!r}")