Files
intercept/tests/test_map_utils.py
2026-04-13 22:19:44 +01:00

20 lines
600 B
Python

# tests/test_map_utils.py
def test_map_utils_js_is_served(client):
"""map-utils.js is accessible as a static file."""
resp = client.get("/static/js/map-utils.js")
assert resp.status_code == 200
data = resp.data.decode()
assert "MapUtils" in data
assert "MapUtils.init" in data
assert "addTacticalOverlays" in data
def test_map_utils_css_is_served(client):
"""map-utils.css is accessible as a static file."""
resp = client.get("/static/css/core/map-utils.css")
assert resp.status_code == 200
data = resp.data.decode()
assert "map-hud-panel" in data