Commit 69041434 authored by Arnaud Fontaine's avatar Arnaud Fontaine

zope4: HTTPRequest.setServerURL() port argument is now a `int` and not a string...

parent 091222fb
...@@ -1546,7 +1546,7 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor): ...@@ -1546,7 +1546,7 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
# on REQUEST information when the method was activated. # on REQUEST information when the method was activated.
request = self.portal.REQUEST request = self.portal.REQUEST
request.setServerURL('http', 'test.erp5.org', '9080') request.setServerURL('http', 'test.erp5.org', 9080)
request.other['PARENTS'] = [self.portal.organisation_module] request.other['PARENTS'] = [self.portal.organisation_module]
request.setVirtualRoot('virtual_root') request.setVirtualRoot('virtual_root')
...@@ -1565,7 +1565,7 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor): ...@@ -1565,7 +1565,7 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
# Reset server URL and virtual root before executing messages. # Reset server URL and virtual root before executing messages.
# This simulates the case of activities beeing executed with different # This simulates the case of activities beeing executed with different
# REQUEST, such as TimerServer. # REQUEST, such as TimerServer.
request.setServerURL('https', 'anotherhost.erp5.org', '443') request.setServerURL('https', 'anotherhost.erp5.org', 443)
request.other['PARENTS'] = [self.app] request.other['PARENTS'] = [self.app]
request.setVirtualRoot('') request.setVirtualRoot('')
# obviously, the object url is different # obviously, the object url is different
......
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