Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
test: WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
julianajlk committed Apr 8, 2024
1 parent dec3d21 commit f05a294
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down

0 comments on commit f05a294

Please sign in to comment.