Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add tests
fowczarekb0e6e6b93257
diff --git a/tests/api/test_shop.py b/tests/api/test_shop.pyindex c02ae0466c..abe9711f67 100644--- a/tests/api/test_shop.py+++ b/tests/api/test_shop.py@@ -512,3 +512,20 @@ def test_shop_fetch_tax_rates(MUTATION_SHOP_FETCH_TAX_RATES)get_graphql_content(response)mock_call_command.assert_called_once_with('get_vat_rates')+++def test_shop_enabled_gateways(+ api_client, settings):+ query = """+ query {+ shop {+ enabledGateways+ }+ }+ """+ response = api_client.post_graphql(query)+ content = get_graphql_content(response)+ 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