Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change error code to enum
Krzysztof Świątekdb48bde2c366
diff --git a/tests/api/test_shipping_method.py b/tests/api/test_shipping_method.pyindex 53fbb5e2d8..32f3ea3c34 100644--- a/tests/api/test_shipping_method.py+++ b/tests/api/test_shipping_method.py@@ -555,7 +555,7 @@ def test_create_shipping_method_with_invalid_price(content = get_graphql_content(response)data = content["data"]["shippingPriceCreate"]assert data["shippingErrors"][0]["field"] == "price"- assert data["shippingErrors"][0]["code"] == "INVALID"+ assert data["shippingErrors"][0]["code"] == ShippingErrorCode.INVALID.namedef test_create_price_shipping_method_errors(