Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix review remark
fowczarek5faecea89469
diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex 119c15599b..eca6012dec 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -77,7 +77,7 @@ class Shop(graphene.ObjectType):required=True)default_currency = graphene.String(description='Default shop\'s currency.', required=True)- enabled_gateways = graphene.List(+ available_payment_gateways = graphene.List(PaymentGatewayEnum, description='List of available payment gateways.')default_country = graphene.Field(CountryDisplay, description='Default shop\'s country')@@ -147,7 +147,7 @@ class Shop(graphene.ObjectType):def resolve_default_currency(self, info):return settings.DEFAULT_CURRENCY- def resolve_enabled_gateways(self, info):+ def resolve_available_payment_gateways(self, info):return settings.CHECKOUT_PAYMENT_GATEWAYS.keys()def resolve_description(self, info):diff --git a/tests/api/test_shop.py b/tests/api/test_shop.pyindex abe9711f67..78d4508678 100644--- a/tests/api/test_shop.py+++ b/tests/api/test_shop.py@@ -514,12 +514,12 @@ def test_shop_fetch_tax_rates(mock_call_command.assert_called_once_with('get_vat_rates')-def test_shop_enabled_gateways(+def test_shop_available_payment_gateways(api_client, settings):query = """query {shop {- enabledGateways+ availablePaymentGateways}}"""@@ -528,4 +528,4 @@ def test_shop_enabled_gateways(data = content['data']['shop']checkout_payment_gateways = [str_to_enum(gateway) for gateway in settings.CHECKOUT_PAYMENT_GATEWAYS.keys()]- assert data['enabledGateways'] == checkout_payment_gateways+ assert data['availablePaymentGateways'] == checkout_payment_gateways