mirror of https://github.com/zulip/zulip.git
billing: Add test for billing disabled settings.
This commit is contained in:
parent
462b9c80c0
commit
a7f4ea4b2c
|
@ -193,6 +193,12 @@ class StripeTest(ZulipTestCase):
|
|||
self.assertEqual('card error', context.exception.description)
|
||||
mock_billing_logger_error.assert_called()
|
||||
|
||||
def test_billing_not_enabled(self) -> None:
|
||||
with self.settings(BILLING_ENABLED=False):
|
||||
self.login(self.example_email("iago"))
|
||||
response = self.client_get("/upgrade/")
|
||||
self.assert_in_success_response(["Page not found (404)"], response)
|
||||
|
||||
@mock_stripe("stripe.Token.create")
|
||||
@mock_stripe("stripe.Customer.create")
|
||||
@mock_stripe("stripe.Subscription.create")
|
||||
|
|
Loading…
Reference in New Issue