From 7563e3692c50d440854fcc69424cb23e6ecfac09 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 7 May 2021 09:51:15 -0700 Subject: [PATCH] billing: Add nocoverage for some untested error cases. Ideally, we'd have tests covering these cases. --- corporate/views.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/corporate/views.py b/corporate/views.py index 8b77a3a58f..cb043e93e3 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":