ADR-013 Phase 3 complete: asset-panels + asset-presentation + map-overlays renderers

This commit is contained in:
2026-07-18 23:10:27 -04:00
parent 69922a4e16
commit fd2ab0ab1c
3 changed files with 105 additions and 6 deletions

View File

@@ -447,10 +447,11 @@ def test_map_overlay_shape_and_derivation(client, auth_headers):
response = client.get('/api/measuringtools/map-overlay')
assert response.status_code == 200, response.get_json()
rows = response.get_json()['data']
# ADR-010 overlay contract: [{assetid, color, label}], only due/overdue tools.
row = next(r for r in rows if r['assetid'] == assetid)
assert set(row) == {'assetid', 'calibrationstatus', 'statuscolor'}
assert row['calibrationstatus'] == 'overdue'
assert row['statuscolor'] == STATUS_COLORS['overdue']
assert set(row) == {'assetid', 'color', 'label'}
assert row['label'] == 'Overdue'
assert row['color'] == STATUS_COLORS['overdue']
def test_map_overlay_excludes_inactive(client, auth_headers):