16 lines
595 B
Python
16 lines
595 B
Python
from pathlib import Path
|
|
|
|
ROOT = Path(__file__).resolve().parents[1]
|
|
|
|
|
|
def test_main_html_has_hockey_vmix_title_and_favicon():
|
|
html = (ROOT / "ui_builder" / "static" / "index.html").read_text(encoding="utf-8")
|
|
assert "<title>Хоккейный vMix</title>" in html
|
|
assert 'href="__UI_BUILDER_ASSETS__/favicon.svg?v=__UI_BUILDER_ASSET_VERSION__"' in html
|
|
|
|
|
|
def test_favicon_svg_exists_and_is_valid_svg_shell():
|
|
svg = (ROOT / "ui_builder" / "static" / "favicon.svg").read_text(encoding="utf-8")
|
|
assert svg.lstrip().startswith("<svg")
|
|
assert "viewBox=\"0 0 64 64\"" in svg
|