diff --git a/app.py b/app.py index 49854fa..95c084b 100644 --- a/app.py +++ b/app.py @@ -29,7 +29,7 @@ from ui_builder import install_ui_builder from khl_site.khl_data_center import APP as khl_site_app BASE_DIR = Path(__file__).resolve().parent -BUILD_VERSION = "2026.08.19.21" +BUILD_VERSION = "2026.08.19.22" load_dotenv(BASE_DIR / ".env.local") load_dotenv(BASE_DIR / ".env") VMIX_API_URL = os.getenv("VMIX_API_URL", "http://127.0.0.1:8088/api/") diff --git a/tests/test_build58_onair_target_matching.py b/tests/test_build58_onair_target_matching.py index 1917ee6..aa9fd36 100644 --- a/tests/test_build58_onair_target_matching.py +++ b/tests/test_build58_onair_target_matching.py @@ -6,7 +6,7 @@ APP = (ROOT / "app.py").read_text(encoding="utf-8") def test_build_version_bumped(): - assert 'BUILD_VERSION = "2026.08.19.21"' in APP + assert 'BUILD_VERSION = "2026.08.19.22"' in APP def test_sequence_targets_match_active_overlay_input(): diff --git a/tests/test_build62_quick_panel_onair_reconcile.py b/tests/test_build62_quick_panel_onair_reconcile.py index a8d59c4..c5910fa 100644 --- a/tests/test_build62_quick_panel_onair_reconcile.py +++ b/tests/test_build62_quick_panel_onair_reconcile.py @@ -6,7 +6,7 @@ APP = (ROOT / "app.py").read_text(encoding="utf-8") def test_build_version_bumped(): - assert 'BUILD_VERSION = "2026.08.19.21"' in APP + assert 'BUILD_VERSION = "2026.08.19.22"' in APP def test_overlay_parser_accepts_legacy_function_strings(): diff --git a/tests/test_build63_gitignore_logout.py b/tests/test_build63_gitignore_logout.py index 2aa9167..867ea0f 100644 --- a/tests/test_build63_gitignore_logout.py +++ b/tests/test_build63_gitignore_logout.py @@ -39,4 +39,4 @@ def test_runtime_has_hockey_account_logout_button_and_handler(): def test_build_version_bumped(): app = (ROOT / "app.py").read_text(encoding="utf-8") - assert 'BUILD_VERSION = "2026.08.19.21"' in app + assert 'BUILD_VERSION = "2026.08.19.22"' in app diff --git a/tests/test_build64_browser_title_favicon.py b/tests/test_build64_browser_title_favicon.py new file mode 100644 index 0000000..c7ef67e --- /dev/null +++ b/tests/test_build64_browser_title_favicon.py @@ -0,0 +1,15 @@ +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 "Хоккейный vMix" 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(" + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ui_builder/static/index.html b/ui_builder/static/index.html index 6a80ebc..16903f7 100644 --- a/ui_builder/static/index.html +++ b/ui_builder/static/index.html @@ -3,7 +3,8 @@ - Universal UI Builder + Хоккейный vMix + __UI_BUILDER_CUSTOM_STYLES__