diff --git a/ecommerce/extensions/payment/tests/processors/test_webhooks.py b/ecommerce/extensions/payment/tests/processors/test_webhooks.py index 5d5d39b5f32..fcfa1d91376 100644 --- a/ecommerce/extensions/payment/tests/processors/test_webhooks.py +++ b/ecommerce/extensions/payment/tests/processors/test_webhooks.py @@ -174,7 +174,8 @@ def test_handle_webhooks_payment(self): with mock.patch('ecommerce.extensions.analytics.utils.track_segment_event') as mock_track: with mock.patch('stripe.PaymentIntent.retrieve') as mock_retrieve: with mock.patch( - 'ecommerce.extensions.checkout.mixins.EdxOrderPlacementMixin.handle_post_order') as mock_post_order: + 'ecommerce.extensions.checkout.mixins.EdxOrderPlacementMixin.handle_post_order' + ) as mock_post_order: mock_retrieve.return_value = { 'id': self.payment_intent['id'], 'client_secret': self.payment_intent['client_secret'],