Add QR title block and content blocks
This commit is contained in:
@@ -81,12 +81,18 @@ 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"):
|
||||
for marker in ("DEMO-01", "IP WO", "INF04", "KARTA PRACY"):
|
||||
if marker not in tex:
|
||||
raise AssertionError(f"TeX nie zawiera znacznika {marker!r}")
|
||||
if marker not in html:
|
||||
raise AssertionError(f"HTML nie zawiera znacznika {marker!r}")
|
||||
|
||||
if r"\qrcode[height=" not in tex:
|
||||
raise AssertionError("TeX nie zawiera kodu QR z tabliczki")
|
||||
for marker in ('class="title-qr"', 'class="code-subblock"'):
|
||||
if marker not in html:
|
||||
raise AssertionError(f"HTML nie zawiera znacznika {marker!r}")
|
||||
|
||||
|
||||
def main() -> int:
|
||||
check_json_files()
|
||||
|
||||
Reference in New Issue
Block a user