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
6 changes: 3 additions & 3 deletions backend/tests/unit/test_neo_desktop_grandfather.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class TestWebhookBuilderPopulatesPeriodStart:
Verified by reading the source so we don't have to wire the full Stripe SDK."""

def test_builder_reads_current_period_start_active_path(self):
with open('routers/payment.py') as f:
with open('routers/payment.py', encoding='utf-8') as f:
src = f.read()
# Both the inactive-downgrade Subscription(...) and the active
# Subscription(...) constructors must pass current_period_start.
Expand All @@ -173,7 +173,7 @@ def test_builder_reads_current_period_start_active_path(self):
), "_build_subscription_from_stripe_object must set current_period_start on both branches"

def test_reconcile_paths_set_current_period_start(self):
with open('utils/subscription.py') as f:
with open('utils/subscription.py', encoding='utf-8') as f:
src = f.read()
# find_active_paid_subscription_for_user + reconcile_basic_plan_with_stripe.
assert (
Expand All @@ -188,7 +188,7 @@ class TestPolicyDocstring:
"""Sanity check that the policy comment + cutoff stay in sync with the code."""

def test_cutoff_is_env_overridable(self):
with open('utils/subscription.py') as f:
with open('utils/subscription.py', encoding='utf-8') as f:
src = f.read()
assert "NEO_DESKTOP_GRANDFATHER_CUTOFF" in src
assert "os.getenv('NEO_DESKTOP_GRANDFATHER_CUTOFF'" in src
Expand Down
Loading