Commit 46e1fa2e authored by Łukasz Nowak's avatar Łukasz Nowak

Fix test: use randomly created web site.

parent 5fa14f6a
......@@ -77,8 +77,7 @@ class TestShaCacheExternal(ShaCacheMixin, ShaSecurityMixin, ERP5TypeTestCase):
# HTTP Connection properties
self.host = self.portal.REQUEST.get('SERVER_NAME')
self.port = self.portal.REQUEST.get('SERVER_PORT')
web_site_path = self.portal.data_set_module.web_site_module.shacache.getPath()
self.path = os.path.join(web_site_path, self.key)
self.path = os.path.join(self.shacache.getPath(), self.key)
def test_external_post(self):
"""
......
......@@ -76,8 +76,7 @@ class TestShaDirExternal(ShaDirMixin, ShaSecurityMixin, ERP5TypeTestCase):
# HTTP Connection properties
self.host = self.portal.REQUEST.get('SERVER_NAME')
self.port = self.portal.REQUEST.get('SERVER_PORT')
web_site_path = self.portal.web_site_module.shadir.getPath()
self.path = os.path.join(web_site_path, self.key)
self.path = os.path.join(self.shadir.getPath(), self.key)
def test_external_post(self):
"""
......
21
\ No newline at end of file
22
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment