Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add given, when, then statements
Ania Warzecha635bc59ecd2b
diff --git a/saleor/account/tests/test_account.py b/saleor/account/tests/test_account.pyindex 12b8bb23db..57fb551452 100644--- a/saleor/account/tests/test_account.py+++ b/saleor/account/tests/test_account.py@@ -14,6 +14,7 @@ from ..validators import validate_possible_number@pytest.mark.parametrize("country", ["CN", "PL", "US", "IE"])def test_address_form_for_country(country):+ # givendata = {"first_name": "John","last_name": "Doe",@@ -21,11 +22,13 @@ def test_address_form_for_country(country):"phone": "123456789",}+ # whenform = forms.get_address_form(data, country_code=country)errors = form.errorsrules = i18naddress.get_validation_rules({"country_code": country})required = rules.required_fields+ # thenif "street_address" in required:assert "street_address_1" in errorselse:@@ -49,18 +52,23 @@ def test_address_form_for_country(country):def test_address_form_postal_code_validation():+ # givendata = {"first_name": "John","last_name": "Doe","country": "PL","postal_code": "XXX",}++ # whenform = forms.get_address_form(data, country_code="PL")errors = form.errors+ # thenassert "postal_code" in errorsdef test_address_form_long_street_address_validation():+ # givendata = {"city": "test","city_area": "test",@@ -79,8 +87,12 @@ def test_address_form_long_street_address_validation():"in culpa qui officia deserunt mollit anim id est laborum"),}++ # whenform = forms.get_address_form(data, country_code="US")errors = form.errors++ # thenassert "street_address_1" in errors