Commit bc65d0ea authored by Ivan Tyagov's avatar Ivan Tyagov

When sticking to web sections we need default group.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@42109 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 39d5fb1f
......@@ -208,7 +208,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
website.ERP5Site_getKnowledgePadListForUser())
# check Web Section
pad_group = None
pad_group = 'default_section_pad' #None
websection = self.websection
websection.ERP5Site_createDefaultKnowledgePadListForUser(
mode='web_section',
......@@ -230,10 +230,10 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pad_group = pad_group)
current_websection_pad, websection_pads = \
websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads,
mode='web_section',
mode='web_section',
default_pad_group = pad_group )
self.assertNotEqual(base_websection_pad.getObject(),
current_websection_pad.getObject())
current_websection_pad.getObject())
# check unstick
websection.WebSection_unStickKnowledgePad(current_websection_pad.getRelativeUrl(), '')
......
1731
\ No newline at end of file
1732
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