You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set_availability decides which countries an app is sold in. It upper-cases and de-duplicates the territory codes, then sends them to the console as a JS plan. Nothing tests that today.
What to do
Add tests to tests/test_apple_console.py, following the pattern of the set_privacy tests merged in #14: patch _run_iris, call the function, then read the generated JS.
Territories are upper-cased, de-duplicated and sorted (["bra", "USA", "bra"] → ["BRA", "USA"]).
available_in_new=True/False ends up as true/false in the request body.
The app_id is passed to _run_iris and appears in the request paths.
The return value of _run_iris is returned unchanged.
I'd like to take the offline set_availability tests. I'll patch _run_iris to verify normalized/sorted territory codes, both boolean values, app ID/path propagation and the unchanged return object, without contacting a store.
Activity
GreedyC commentedon Oct 13, 2026
I'd like to take the offline
set_availabilitytests. I'll patch_run_iristo verify normalized/sorted territory codes, both boolean values, app ID/path propagation and the unchanged return object, without contacting a store.