Stripe checkout #104411

Merged
Anna Sirota merged 61 commits from stripe into main 2024-06-17 18:08:41 +02:00
Showing only changes of commit a4f13681cc - Show all commits

View File

@ -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)