Skip to content

test: cover App Store territory availability plans - #29

Open
GreedyC wants to merge 1 commit into
FidelisMM:mainfrom
GreedyC:codex/issue-17-easy-20261013
Open

GreedyC wants to merge 1 commit into
FidelisMM:mainfrom
GreedyC:codex/issue-17-easy-20261013

Conversation

@GreedyC

@GreedyC GreedyC commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

What

Closes #17. Add offline set_availability contract tests for uppercase/deduplicated/sorted territory codes, empty input, both new-territory boolean values, app ID propagation into the _run_iris call and generated paths, and exact return-object identity. Production code is unchanged.

Tested against

  • Real store (which one, test app)
  • Only offline (compile/import)

macOS, Python 3.12: all 33 unittest cases pass; Ruff E9,F over src tests and warning-as-error source compilation pass. Four deliberate production mutations (territory normalization, boolean inversion, wrong app path, copied return object) each fail the new tests; source was restored and the complete suite passed again. No browser or store request is made.

A separate read-only Copilot CLI review found no concrete defects. This is local tool review, not maintainer approval. Hosted CI and real console behavior remain unverified.

Checklist

  • Publishing tools say "External action" in the docstring (no tool changes)
  • No credentials, real account ids or personal data
  • README "Hard-won lessons" updated if this fixes a store quirk (not applicable: tests only)

This branch has not been deployed

No deployments
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.

Unit tests for apple_console.set_availability

1 participant