diff --git a/corporate/tests/test_stripe.py b/corporate/tests/test_stripe.py index a83b1e5edc..f4d6542bab 100644 --- a/corporate/tests/test_stripe.py +++ b/corporate/tests/test_stripe.py @@ -685,7 +685,6 @@ class StripeTest(StripeTestCase): check_success(False, self.seat_count) # Autopay check_success(False, self.seat_count, {'license_management': 'manual'}) - check_success(False, self.seat_count + 10, {'license_management': 'mix'}) # Invoice check_success(True, self.seat_count + MIN_INVOICED_LICENSES) diff --git a/corporate/views.py b/corporate/views.py index b826d26eb5..640dd21f2e 100644 --- a/corporate/views.py +++ b/corporate/views.py @@ -42,7 +42,7 @@ def check_upgrade_parameters( raise BillingError('unknown billing_modality') if schedule not in ['annual', 'monthly']: raise BillingError('unknown schedule') - if license_management not in ['automatic', 'manual', 'mix']: + if license_management not in ['automatic', 'manual']: raise BillingError('unknown license_management') if billing_modality == 'charge_automatically': @@ -91,7 +91,7 @@ def upgrade(request: HttpRequest, user: UserProfile, check_upgrade_parameters( billing_modality, schedule, license_management, licenses, stripe_token is not None, seat_count) - automanage_licenses = license_management in ['automatic', 'mix'] + automanage_licenses = license_management == 'automatic' billing_schedule = {'annual': CustomerPlan.ANNUAL, 'monthly': CustomerPlan.MONTHLY}[schedule]