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): ...@@ -208,7 +208,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
website.ERP5Site_getKnowledgePadListForUser()) website.ERP5Site_getKnowledgePadListForUser())
# check Web Section # check Web Section
pad_group = None pad_group = 'default_section_pad' #None
websection = self.websection websection = self.websection
websection.ERP5Site_createDefaultKnowledgePadListForUser( websection.ERP5Site_createDefaultKnowledgePadListForUser(
mode='web_section', mode='web_section',
...@@ -230,10 +230,10 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -230,10 +230,10 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
default_pad_group = pad_group) default_pad_group = pad_group)
current_websection_pad, websection_pads = \ current_websection_pad, websection_pads = \
websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads, websection.ERP5Site_getActiveKnowledgePadForUser(websection_pads,
mode='web_section', mode='web_section',
default_pad_group = pad_group ) default_pad_group = pad_group )
self.assertNotEqual(base_websection_pad.getObject(), self.assertNotEqual(base_websection_pad.getObject(),
current_websection_pad.getObject()) current_websection_pad.getObject())
# check unstick # check unstick
websection.WebSection_unStickKnowledgePad(current_websection_pad.getRelativeUrl(), '') websection.WebSection_unStickKnowledgePad(current_websection_pad.getRelativeUrl(), '')
......
1731 1732
\ 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