feat: refine repeated dual-QR header
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user