Skip to content

test(history): give the coverage fixtures the knownGaps field the spec now requires - #40

Merged
cubehouse merged 1 commit into
mainfrom
test/coverage-fixtures-known-gaps
Oct 30, 2026
Merged

cubehouse merged 1 commit into
mainfrom
test/coverage-fixtures-known-gaps

Conversation

@cubehouse

Copy link
Copy Markdown
Member

Summary

 PARK_COVERAGE = {
     ...
     "fields": {},
     "entities": [],
+    "knownGaps": [],
 }
 ENTITY_COVERAGE = { ..., "kinds": {}, + "knownGaps": [] }
 # plus the inline body in TestCoverage.test_coverage_returns_what_exists

The upstream spec lists knownGaps as required on the entity and park coverage documents. The spec-drift PR (#35) regenerates the models with that field required, and these three fixtures omit it, so eight tests in tests/unit/test_history.py fail validation there. ApiModel allows extra fields, so the fixtures also pass on the current models and can land first.

Evidence

  • Before: on the spec-drift branch, tests/unit/test_history.py has 8 failures: HistoryParkCoverageDocument and the entity document report knownGaps "Field required".
  • After: on main, pytest tests/unit gives 457 passed. With these fixtures applied on top of the spec-drift branch, tests/unit/test_history.py gives 25 passed.
  • Not fixed here: two tests/unit/test_backfill.py failures on the spec-drift branch, which are the CSV column set changing (36 to 40 data columns). That file is a contract shared with the JavaScript SDK and needs its own change.

Merge Danger

Door: two-way

Blast Radius: tests only. No library code changes.

🤖 Generated with Claude Code

…c 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 <noreply@anthropic.com>
@cubehouse
cubehouse merged commit e1de83a into main Oct 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant