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: Add nocoverage for some untested error cases.

Tim Abbott7563e3692c50
diff --git a/corporate/views.py b/corporate/views.py
index 8b77a3a58fc..cb043e93e39 100644
--- a/corporate/views.py
+++ b/corporate/views.py
@@ -71,11 +71,11 @@ def check_upgrade_parameters(
has_stripe_token: bool,
seat_count: int,
) -> None:
- if billing_modality not in VALID_BILLING_MODALITY_VALUES:
+ if billing_modality not in VALID_BILLING_MODALITY_VALUES: # nocoverage
raise BillingError("unknown billing_modality")
- if schedule not in VALID_BILLING_SCHEDULE_VALUES:
+ if schedule not in VALID_BILLING_SCHEDULE_VALUES: # nocoverage
raise BillingError("unknown schedule")
- if license_management not in VALID_LICENSE_MANAGEMENT_VALUES:
+ if license_management not in VALID_LICENSE_MANAGEMENT_VALUES: # nocoverage
raise BillingError("unknown license_management")
if billing_modality == "charge_automatically":