Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Test both ways
Patryk Zawadzki3b1b91fb56a5
diff --git a/saleor/userprofile/test_userprofile.py b/saleor/userprofile/test_userprofile.pyindex cb6ee2de35..9794c71624 100644--- a/saleor/userprofile/test_userprofile.py+++ b/saleor/userprofile/test_userprofile.py@@ -15,11 +15,21 @@ def test_address_form_for_country(country):required = i18naddress.validate_areas(country)[0]if 'street_address' in required:assert 'street_address_1' in errors+ else:+ assert 'street_address_1' not in errorsif 'city' in required:assert 'city' in errors+ else:+ assert 'city' not in errorsif 'city_area' in required:assert 'city_area' in errors+ else:+ assert 'city_area' not in errorsif 'country_area' in required:assert 'country_area' in errors+ else:+ assert 'country_area' not in errorsif 'postal_code' in required:assert 'postal_code' in errors+ else:+ assert 'postal_code' not in errors