Skip to content

Fix test_no_price_is_invented_off_the_store for leftover flag files - #97

Merged
sgf36 merged 3 commits into
mainfrom
claude/focused-mestorf-511732
Sep 29, 2026
Merged

sgf36 merged 3 commits into
mainfrom
claude/focused-mestorf-511732

Conversation

@sgf36

@sgf36 sgf36 commented Sep 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • test_no_price_is_invented_off_the_store fails when app/resources/store_build.flag exists as an untracked leftover from a prior build_msix.py run — STORE_BUILD becomes True, unlock_price() hits the real Microsoft Store API, and returns £24.99 instead of None
  • Fix: monkeypatch se.STORE_BUILD and mse.MAS_BUILD to False so the test enforces its assumption rather than relying on the flag file being absent

Test plan

  • pytest tests/test_onboarding_screens.py::test_no_price_is_invented_off_the_store passes in a clean worktree (no flag file)
  • Same test passes in the main checkout where store_build.flag is present

🤖 Generated with Claude Code

sgf36 and others added 3 commits September 28, 2026 17:01
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…flag is present

The test assumed the flag file would never exist in a dev checkout, but a
leftover from a prior packaging run made STORE_BUILD=True and caused
unlock_price() to hit the real Microsoft Store API (returning £24.99).
Monkeypatch the store flags to False so the test is resilient to flag
files on disk.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sgf36
sgf36 merged commit 9a726a4 into main Sep 29, 2026
4 checks passed
@sgf36
sgf36 deleted the claude/focused-mestorf-511732 branch September 29, 2026 11:16
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