From b857957724479c13359a3d31da68e88df45fdef6 Mon Sep 17 00:00:00 2001 From: Jamie Holding Date: Fri, 30 Oct 2026 20:39:36 +0000 Subject: [PATCH] test(history): give the coverage fixtures the knownGaps field the spec now requires The upstream spec lists knownGaps as required on both the entity and the park coverage documents. The three fixtures in test_history.py omit it, so the regenerated models in the spec-drift PR reject them and eight tests fail. Models allow extra fields, so the fixtures pass on the current models too and can land first. Co-Authored-By: Claude Sonnet 5.5 --- tests/unit/test_history.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/test_history.py b/tests/unit/test_history.py index e7753da..7accf2d 100644 --- a/tests/unit/test_history.py +++ b/tests/unit/test_history.py @@ -255,6 +255,7 @@ def test_coverage_returns_what_exists(self): "lastRecordedAt": "2026-09-20", "retrievableThrough": "2026-09-20", "kinds": {}, + "knownGaps": [], } doc = client(lambda r: httpx.Response(200, json=body)).entity("ride-1").history.coverage() assert doc.firstRecordedAt == _d(2021, 7, 3) @@ -326,6 +327,7 @@ def handler(req): }, "fields": {}, "entities": [], + "knownGaps": [], } ENTITY_COVERAGE = { @@ -339,6 +341,7 @@ def handler(req): "lastRecordedAt": "2026-09-22", "retrievableThrough": "2026-08-23", "kinds": {}, + "knownGaps": [], }