Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

billing: Fix incorrect variable names in test_compute_plan_parameters.

Vishnu KS9585486905ab
diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py
index b63f05c823d..b59b69d5cd9 100644
--- a/corporate/tests/test_stripe.py
+++ b/corporate/tests/test_stripe.py
@@ -3176,11 +3176,11 @@ class BillingHelpersTest(ZulipTestCase):
((False, CustomerPlan.MONTHLY, 87.15), (anchor, month_later, month_later, 102)),
]
with patch("corporate.lib.stripe.timezone_now", return_value=anchor):
- for (automanage_licenses, discount, free_trial), output in test_cases:
+ for (automanage_licenses, billing_schedule, discount), output in test_cases:
output_ = compute_plan_parameters(
automanage_licenses,
- discount,
- None if free_trial is None else Decimal(free_trial),
+ billing_schedule,
+ None if discount is None else Decimal(discount),
)
self.assertEqual(output_, output)