Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Test both ways

Patryk Zawadzki3b1b91fb56a5
diff --git a/saleor/userprofile/test_userprofile.py b/saleor/userprofile/test_userprofile.py
index 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 errors
if 'city' in required:
assert 'city' in errors
+ else:
+ assert 'city' not in errors
if 'city_area' in required:
assert 'city_area' in errors
+ else:
+ assert 'city_area' not in errors
if 'country_area' in required:
assert 'country_area' in errors
+ else:
+ assert 'country_area' not in errors
if 'postal_code' in required:
assert 'postal_code' in errors
+ else:
+ assert 'postal_code' not in errors