Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Minor fixes
Jakub Draganek70025f15f448
diff --git a/tests/api/test_checkout.py b/tests/api/test_checkout.pyindex abcc5ed9b0..8fccfdc65c 100644--- a/tests/api/test_checkout.py+++ b/tests/api/test_checkout.py@@ -1270,7 +1270,7 @@ def fake_manager(mocker):@pytest.fixturedef mock_get_manager(mocker, fake_manager):- mgr = mocker.patch(+ mocker.patch("saleor.payment.gateway.get_extensions_manager",autospec=True,return_value=fake_manager,@@ -1426,7 +1426,7 @@ def test_checkout_complete_confirmation_needed(response = user_api_client.post_graphql(MUTATION_CHECKOUT_COMPLETE, variables)content = get_graphql_content(response)data = content["data"]["checkoutComplete"]- assert not dataconfirmationNeeded["errors"]+ assert not data["errors"]assert not data["confirmationNeeded"]mock_get_manager.confirm_payment.assert_called_once()