fix(ui): render the exact production version

This commit is contained in:
ogt
2026-07-11 10:24:59 +08:00
parent f9c77343f3
commit c7906d5b80
5 changed files with 14 additions and 4 deletions

View File

@@ -112,3 +112,12 @@ def test_login_first_viewport_has_no_third_party_or_inline_styles():
assert "css/page-login.css" in template
assert "gradient(" not in stylesheet
assert "font-size: clamp" not in stylesheet
def test_login_version_uses_single_app_config_truth():
app_source = (ROOT / "app.py").read_text(encoding="utf-8")
template = (ROOT / "templates/login.html").read_text(encoding="utf-8")
assert "app.config['SYSTEM_VERSION'] = SYSTEM_VERSION" in app_source
assert template.count("config.get('SYSTEM_VERSION', '')") == 2
assert "EwoooC V{{" not in template