Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove unnecessary code
Mateusz Grzyb88efc383be52
diff --git a/saleor/payment/gateways/stripe/consts.py b/saleor/payment/gateways/stripe/consts.pyindex f7cadf5ef1..ae1443c0a4 100644--- a/saleor/payment/gateways/stripe/consts.py+++ b/saleor/payment/gateways/stripe/consts.py@@ -27,8 +27,7 @@ ACTION_REQUIRED_STATUSES = ["requires_action",]-# todo: fix this?-FAILED_STATUSES = ["requires_payment_method" "canceled"]+FAILED_STATUSES = ["requires_payment_method", "canceled"]SUCCESS_STATUS = "succeeded"diff --git a/saleor/payment/gateways/stripe/tests/test_plugin.py b/saleor/payment/gateways/stripe/tests/test_plugin.pyindex 24125a6e04..041b6a3cb7 100644--- a/saleor/payment/gateways/stripe/tests/test_plugin.py+++ b/saleor/payment/gateways/stripe/tests/test_plugin.py@@ -973,11 +973,7 @@ def test_confirm_payment(assert response.error is None-# todo: fix this- "metadata",- [{f"key{i}": f"value{i}" for i in range(5)}, {}, None],-)[email protected]("metadata", [{"key": "value"}, {}, None])@patch("saleor.payment.gateways.stripe.stripe_api.stripe.PaymentIntent.retrieve")def test_confirm_payment_metadata(mocked_intent_retrieve,diff --git a/saleor/payment/gateways/stripe/tests/test_webhooks.py b/saleor/payment/gateways/stripe/tests/test_webhooks.pyindex de9c2b9f67..b397a0feb8 100644--- a/saleor/payment/gateways/stripe/tests/test_webhooks.py+++ b/saleor/payment/gateways/stripe/tests/test_webhooks.py@@ -290,10 +290,7 @@ def test_handle_authorized_payment_intent_for_processing_order_payment(assert wrapped_checkout_complete.called is False-# todo: fix this- "metadata", [{f"key{i}": f"value{i}" for i in range(5)}, {}, None]-)[email protected]("metadata", [{"key": "value"}, {}, None])@patch("saleor.payment.gateways.stripe.webhooks.complete_checkout", wraps=complete_checkout)