mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
billing: Add nocoverage for some untested error cases.
Ideally, we'd have tests covering these cases.
This commit is contained in:
@@ -71,11 +71,11 @@ def check_upgrade_parameters(
|
|||||||
has_stripe_token: bool,
|
has_stripe_token: bool,
|
||||||
seat_count: int,
|
seat_count: int,
|
||||||
) -> None:
|
) -> 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")
|
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")
|
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")
|
raise BillingError("unknown license_management")
|
||||||
|
|
||||||
if billing_modality == "charge_automatically":
|
if billing_modality == "charge_automatically":
|
||||||
|
Reference in New Issue
Block a user