Use configured version in Contracts homepage
Deploy contracts-flask / validate (push) Canceled after 0s
Deploy contracts-flask / validate (push) Canceled after 0s
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user