Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants