Commit 5f28c6ff authored by Jérome Perrin's avatar Jérome Perrin

KM: py3

parent 126029b6
...@@ -718,7 +718,7 @@ class TestKM(TestKMMixIn): ...@@ -718,7 +718,7 @@ class TestKM(TestKMMixIn):
gadget_view_form_id) gadget_view_form_id)
# no related docs should exist # no related docs should exist
self.assertIn(b'No result.', relation_form_renderer()) self.assertIn('No result.', relation_form_renderer())
# set related docs # set related docs
similar_doc = portal.web_page_module.newContent( similar_doc = portal.web_page_module.newContent(
...@@ -752,7 +752,7 @@ class TestKM(TestKMMixIn): ...@@ -752,7 +752,7 @@ class TestKM(TestKMMixIn):
portal = self.getPortal() portal = self.getPortal()
portal_gadgets = portal.portal_gadgets portal_gadgets = portal.portal_gadgets
url = '%s/ERP5Site_viewHomeAreaRenderer?gadget_mode=web_front' %self.web_site_url url = '%s/ERP5Site_viewHomeAreaRenderer?gadget_mode=web_front' % self.web_site_url
response = self.publish(url, self.auth) response = self.publish(url, self.auth)
self.assertIn(str2bytes(self.web_front_knowledge_pad.getTitle()), response.getBody()) self.assertIn(str2bytes(self.web_front_knowledge_pad.getTitle()), response.getBody())
...@@ -774,7 +774,7 @@ class TestKM(TestKMMixIn): ...@@ -774,7 +774,7 @@ class TestKM(TestKMMixIn):
self.assertNotIn(b'Server side error', response.getBody()) self.assertNotIn(b'Server side error', response.getBody())
# set non existent edit_form # set non existent edit_form
old_gadget_edit_form_id = gadget.edit_form_id old_gadget_edit_form_id = gadget.edit_form_id
gadget.edit_form_id = 'NO_SUCH_FORM_EXISTS' gadget.edit_form_id = 'NO_SUCH_FORM_EXISTS'
response = self.publish(url, self.auth) response = self.publish(url, self.auth)
self.assertIn(b'Server side error', response.getBody()) self.assertIn(b'Server side error', response.getBody())
...@@ -795,7 +795,7 @@ class TestKM(TestKMMixIn): ...@@ -795,7 +795,7 @@ class TestKM(TestKMMixIn):
self.changeSkin('KM') self.changeSkin('KM')
# "Subsections" gadget # "Subsections" gadget
gadget_view_form_id = web_site_browser_gadget.view_form_id gadget_view_form_id = web_site_browser_gadget.view_form_id
box_url = _getGadgetInstanceUrlFromKnowledgePad( \ box_url = _getGadgetInstanceUrlFromKnowledgePad( \
self.web_front_knowledge_pad, \ self.web_front_knowledge_pad, \
web_site_browser_gadget) web_site_browser_gadget)
......
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