Repository navigation
test(roadmap): install the roadmap store through one hook - #3889
Conversation
get_roadmap_store opens the store that install_roadmap_store set, else the GitHub store. The floor calls reset_roadmap_store after each test. The roadmap_store fixture, the refine tests and the GitHub store tests use the hook, and the refine tests use no patch.
The intake and dry-run tests fail writes through the store fault mode, answer gh with the process fake, the model with the model fake, MCP calls with a dispatcher and telemetry with the OTLP fake. They patch no devops-cli name.
The run tests answer gh through GitHubFake.install on the process fake, log the Service in through the web fake, and fail reads through the store fault mode. They read the due rows through the table and import no private adapter.
record_passing_run holds the rule that a run is recorded only when the tree did not change while it ran. The cache tests read the fingerprint through the git fake and patch no devops-cli name.
The OpenSpec change 3746 plans the item. TESTING.md names the install hook, the read faults and the repository fake.
|
Test record for this pull request. AST scan of the nine files of #3746 (patch sites and private imports of
Parts of #3746 that stay open, with the evidence:
Behavior found: through Focused runs: |
|
Full This corrects the "Focused runs" line of my first comment: the full run, not a subset, is the record. On GitHub, |
…ts-install-store-hook
4ad7e2d to
5a0f3e0
Compare
5a0f3e0 to
4ad7e2d
Compare
Roadmap and CI tests put their fakes in through one hook, not through a patch of a module attribute.
roadmap/store.pygetsinstall_roadmap_store(factory)andreset_roadmap_store(), in the pattern ofinstall_exporter. This is the only change insrc: the tests are the rest.get_roadmap_storereturns the installed store, else the GitHub store. The floor resets the hook after each test. A test that opens the real store now fails because the floor refusesgh.ci/cache.pygetsrecord_passing_run, so the rule "record a passing run only if the tree did not change" has a public function that a test calls.The roadmap and CI tests use the process, web, model and store fakes, the
clifixture andmake_item. They hold no private import.GitHubFakemoves totests/support/fakes/github_repository.py.Four patch sites and two CI cases stay for want of a seam: see #3885.
Closes #3746
Change:
openspec/changes/archive/2026-11-07-3746-roadmap-tests-install-store-hook/