Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/test_onboarding_screens.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,14 @@ def get_store_products_async(self, kinds, ids):
assert se.unlock_price() == "79,00 €"


def test_no_price_is_invented_off_the_store():
def test_no_price_is_invented_off_the_store(monkeypatch):
import app.core.mac_store_entitlement as mse
import app.core.store_entitlement as se

# Tests run unpackaged and without the store flags, so neither store answers.
# Force the store flags off so a leftover flag file from a packaging run
# does not cause the test to hit the real Store API.
monkeypatch.setattr(se, "STORE_BUILD", False)
monkeypatch.setattr(mse, "MAS_BUILD", False)
assert se.unlock_price() is None
assert mse.unlock_price() is None

Expand Down
Loading