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

test: Stripe tests clean up and update #4157

Merged
merged 4 commits into from
May 7, 2024

Conversation

julianajlk
Copy link
Contributor

@julianajlk julianajlk commented May 6, 2024

REV-4019.

This PR uncomments and updates the Stripe class tests, and I also updates the StripeCheckoutView test to assert the processor response is recorded. Keeping both types of tests so it's clear we have tests for both classes, even though they overlap.

I am also updating handle_processor_response to convert a 'true'/'false' value to Python bool, since this value comes from the frontend as a string. The current code does not cause an issue in production even though the check is not being used as expected, since there are no Payment Intents with status 'requires_action' yet, we are not using the Dynamic Payment Methods flow yet.

@julianajlk julianajlk requested a review from a team as a code owner May 6, 2024 20:43
@julianajlk julianajlk force-pushed the julianajlk/REV-4019/stripe-tests-cleanup branch 3 times, most recently from 19f79f7 to dc47c99 Compare May 6, 2024 22:54
@julianajlk julianajlk force-pushed the julianajlk/REV-4019/stripe-tests-cleanup branch from dc47c99 to 647da2e Compare May 6, 2024 23:10
@julianajlk julianajlk changed the title test: Stripe clean up and update tests test: Stripe tests clean up and update May 7, 2024
@julianajlk julianajlk merged commit 3b8c210 into 2u/main May 7, 2024
8 checks passed
@julianajlk julianajlk deleted the julianajlk/REV-4019/stripe-tests-cleanup branch May 7, 2024 18:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants