changeset a50390a9cccc in modules/sale:default
details: https://hg.tryton.org/modules/sale?cmd=changeset&node=a50390a9cccc
description:
        Remove code from country and subdivision in test scenario

        This avoid to have to test name with flags

        issue11675
        review419741003
diffstat:

 tests/scenario_sale_reporting.rst |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 1eea991d52aa -r a50390a9cccc tests/scenario_sale_reporting.rst
--- a/tests/scenario_sale_reporting.rst Mon Aug 01 10:59:26 2022 +0200
+++ b/tests/scenario_sale_reporting.rst Thu Sep 08 12:57:57 2022 +0200
@@ -41,14 +41,13 @@
 
     >>> 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::

Reply via email to