Stripe checkout #104411
@ -133,7 +133,7 @@ class TestSubscriptionSettingsChangePaymentMethod(BaseSubscriptionTestCase):
|
||||
rsps._add_from_file(f'{responses_dir}stripe_retrieve_checkout_session_setup.yaml')
|
||||
response = self.client.get(success_url)
|
||||
self.assertEqual(response.status_code, 302)
|
||||
self.assertEqual(response['Location'], '/subscription/1/manage/')
|
||||
self.assertEqual(response['Location'], f'/subscription/{subscription.pk}/manage/')
|
||||
|
||||
# New payment method was created
|
||||
self.assertEqual(PaymentMethod.objects.count(), 2)
|
||||
|
Loading…
Reference in New Issue
Block a user