Use configured version in Contracts homepage
Deploy contracts-flask / validate (push) Canceled after 0s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Repinoid
2026-10-30 10:34:59 +03:00
co-authored by Copilot
parent 32f7d3d764
commit c79006737f
2 changed files with 20 additions and 8 deletions
+12
View File
@@ -29,6 +29,18 @@ class TestHealth:
assert data["version"] == VERSION
class TestHomepage:
def test_version_and_asset_urls_use_application_version(self, client):
from config import VERSION
response = client.get("/")
assert response.status_code == 200
html = response.get_data(as_text=True)
assert f">v{VERSION}</span>" in html
assert f"/static/files.js?v={VERSION}" in html
assert f"/file-picker/file-picker.iife.js?v={VERSION}" in html
class TestSpecCurrent:
def test_missing_contract_id(self, client):
r = client.get("/api/spec-current")