mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 18:43:52 +00:00
test_stripe: Add check for initially added card.
This commit is contained in:
@@ -2999,6 +2999,11 @@ class StripeTest(StripeTestCase):
|
|||||||
user = self.example_user("hamlet")
|
user = self.example_user("hamlet")
|
||||||
self.login_user(user)
|
self.login_user(user)
|
||||||
self.add_card_and_upgrade(user)
|
self.add_card_and_upgrade(user)
|
||||||
|
|
||||||
|
# Check that the card is displayed on the billing page.
|
||||||
|
response = self.client_get("/billing/")
|
||||||
|
self.assert_in_success_response(["Visa ending in 4242"], response)
|
||||||
|
|
||||||
# Create an open invoice
|
# Create an open invoice
|
||||||
customer = Customer.objects.first()
|
customer = Customer.objects.first()
|
||||||
assert customer is not None
|
assert customer is not None
|
||||||
|
|||||||
Reference in New Issue
Block a user