From 1524bbdb21a92c630ea87f6e2ceb3380667c388e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 8 Sep 2022 12:57:57 +0200 Subject: [PATCH] Remove code from country and subdivision in test scenario This avoid to have to test name with flags issue11675 review419741003 --- tests/scenario_sale_reporting.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/scenario_sale_reporting.rst b/tests/scenario_sale_reporting.rst index d47d762aec..120573c06c 100644 --- a/tests/scenario_sale_reporting.rst +++ b/tests/scenario_sale_reporting.rst @@ -41,14 +41,13 @@ Create countries:: >>> Country = Model.get('country.country') >>> Subdivision = Model.get('country.subdivision') - >>> country_us = Country( - ... name="United States", code="US", code3="USA", code_numeric="840") + >>> country_us = Country(name="United States") >>> country_us.save() >>> california = Subdivision( - ... name="California", code="US-CA", type='state', country=country_us) + ... name="California", type='state', country=country_us) >>> california.save() >>> new_york = Subdivision( - ... name="New York", code="US-NY", type='state', country=country_us) + ... name="New York", type='state', country=country_us) >>> new_york.save() Create party categories::