Commit b136d3b5 authored by Gabriel Monnerat's avatar Gabriel Monnerat

- uncommented code

- fix issue in test to edit object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44156 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 27a452e9
......@@ -53,7 +53,7 @@
<value> <string>portal_catalog = context.portal_catalog\n
\n
knowledge_pad = portal_catalog.getResultValue(portal_type="Knowledge Pad",\n
# publication_section_uid=context.getUid(),\n
publication_section_uid=context.getUid(),\n
validation_state=["visible", "public"])\n
\n
knowledge_box = knowledge_pad.newContent(portal_type="Knowledge Box")\n
......
......@@ -328,6 +328,7 @@ class TestUNG(ERP5TypeTestCase):
def testWebSection_addGadget(self):
"""Test if gadgets are added correctly"""
obj = self.portal.knowledge_pad_module.newContent(portal_type="Knowledge Pad")
obj.edit(publication_section_value=self.portal.web_site_module.ung)
obj.visible()
self.stepTic()
gadget = self.portal.portal_gadgets.searchFolder()[0]
......
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