Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix min create test, sync zeep versions
Browse files Browse the repository at this point in the history
tswfi committed Apr 30, 2024
1 parent 57e745b commit f20f9bf
Showing 5 changed files with 27 additions and 6 deletions.
8 changes: 8 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -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)
------------------

4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -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"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@
history = history_file.read()

requirements = [
'zeep>=4.0.0',
'zeep==4.2.1',
]

setup_requirements = [
11 changes: 9 additions & 2 deletions tests/test_epages_provisioning.py
Original file line number Diff line number Diff line change
@@ -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):
"""
8 changes: 7 additions & 1 deletion tests/test_shop.py
Original file line number Diff line number Diff line change
@@ -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):

0 comments on commit f20f9bf

Please sign in to comment.