Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix tests for company_address
Maciej Korycinskiff45e1089f88
diff --git a/saleor/graphql/shop/mutations.py b/saleor/graphql/shop/mutations.pyindex 13e9df83ca..3cdcc6548b 100644--- a/saleor/graphql/shop/mutations.py+++ b/saleor/graphql/shop/mutations.py@@ -86,6 +86,7 @@ class ShopAddressUpdate(BaseMutation, I18nMixin):else:company_address = site_settings.company_addresscompany_address = cls.validate_address(data, company_address)+ company_address.save()site_settings.company_address = company_addresssite_settings.save()return ShopAddressUpdate(shop=Shop())diff --git a/tests/api/test_shop.py b/tests/api/test_shop.pyindex 390e089991..f1235423e1 100644--- a/tests/api/test_shop.py+++ b/tests/api/test_shop.py@@ -533,6 +533,7 @@ def test_mutation_update_company_address("streetAddress1": address.street_address_1,"city": address.city,"country": address.country.code,+ "postalCode": address.postal_code,}}