diff --git a/HISTORY.rst b/HISTORY.rst index ade4d19..bf2fc50 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -2,6 +2,14 @@ History ======= +1.1.0 (2024-04-30) +------------------ + +* Sync all zeep requirements to 4.2.1 +* Fix `test_010_create_mindata` to send `WebServerScriptNamePart` which is required now +* Allow defining shoptype as env variable for tests +* up Pipenv python version to 3.8 + 1.0.2 (2021-01-04) ------------------ diff --git a/Pipfile b/Pipfile index db5cf53..c491140 100644 --- a/Pipfile +++ b/Pipfile @@ -17,7 +17,7 @@ Sphinx = "*" python-coveralls = "*" [packages] -zeep = "==4.1.0" +zeep = "==4.2.1" [requires] -python_version = "3.6" +python_version = "3.8" diff --git a/setup.py b/setup.py index ae5edca..e354d5e 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ history = history_file.read() requirements = [ - 'zeep>=4.0.0', + 'zeep==4.2.1', ] setup_requirements = [ diff --git a/tests/test_epages_provisioning.py b/tests/test_epages_provisioning.py index b5ce621..c153719 100644 --- a/tests/test_epages_provisioning.py +++ b/tests/test_epages_provisioning.py @@ -58,6 +58,12 @@ class TestShopConfiguration(unittest.TestCase): export EP_TRACE=1 + And you can define the shoptype to use with + + export EP_SHOPTYPE=MinDemo + + MinDemo is the default value if not set + and then run your tests Warning: these will take a while to run. @@ -76,7 +82,7 @@ def setUpClass(cls): # used as alias for these tests cls._nowstr = datetime.now().strftime('%Y%m%d%H%M%S%f') cls._shopalias_min = 'test-{}-min'.format(cls._nowstr) - cls._shoptype = 'MinDemo' + cls._shoptype = os.environ.get('EP_SHOPTYPE', 'MinDemo') def test_000_get_all_info(self): """ get info of all shops for this provider """ @@ -87,6 +93,7 @@ def test_010_create_mindata(self): shop = self._sc.get_createshop_obj() shop.Alias = self._shopalias_min shop.ShopAlias = self._shopalias_min + shop.WebServerScriptNamePart = self._shopalias_min shop.ShopType = self._shoptype self.assertIsNone(self._sc.create(shop)) @@ -184,7 +191,7 @@ def setUpClass(cls): # this is probably the smallest shoptype for testing, others might be # "EBiz5" or "eCMSFree" - cls._shoptype = "MinDemo" + cls._shoptype = os.environ.get('EP_SHOPTYPE', 'MinDemo') def test_000_create_mindata(self): """ diff --git a/tests/test_shop.py b/tests/test_shop.py index 2575652..7e5ab43 100644 --- a/tests/test_shop.py +++ b/tests/test_shop.py @@ -46,6 +46,12 @@ class TestShop(unittest.TestCase): export EP_TRACE=1 + And you can define the shoptype to use with + + export EP_SHOPTYPE=MinDemo + + MinDemo is the default value if not set + and then run your tests Warning: these will take a while to run. @@ -64,7 +70,7 @@ def setUpClass(cls): # used as alias for these tests cls._nowstr = datetime.now().strftime('%Y%m%d%H%M%S%f') cls._alias = 'test-{}-min'.format(cls._nowstr) - cls._shoptype = 'MinDemo' + cls._shoptype = os.environ.get('EP_SHOPTYPE', 'MinDemo') print("Using shopalias: {} for testing".format(cls._alias)) def setUp(self):