feat: integrate official PIGWay v1.1 brand assets
Community checks / verify (push) Skipped
Verify Frame Flow / verify (push) Successful in 5m18s

This commit is contained in:
渡口浪人
2026-10-19 19:03:08 +08:00
parent beb0bb0eb8
commit a83591d2c8
15 changed files with 68 additions and 8 deletions
+22
View File
@@ -291,6 +291,28 @@ def test_core_has_no_client_special_case():
)
def test_official_brand_assets(client):
html = client.get("/").text
assert "/ui/favicon.svg" in html
assert "/ui/apple-touch-icon.png" in html
assert 'class="mobile-brand-logo pigway-logo"' in html
for filename, content_type in [
("logo-symbol.svg", "image/svg+xml"),
("favicon.svg", "image/svg+xml"),
("favicon.ico", "image/vnd.microsoft.icon"),
("apple-touch-icon.png", "image/png"),
]:
response = client.get("/ui/" + filename)
assert response.status_code == 200
assert response.headers["content-type"].split(";")[0] in (
content_type,
"image/x-icon",
)
assert (
response.content == (Path("pigway_frame_flow/web") / filename).read_bytes()
)
def test_ui_languages(client):
assert client.get("/ui/app.js").status_code == 200
i18n = client.get("/ui/i18n.js").text