Commit ae49375a authored by Ivan Tyagov's avatar Ivan Tyagov

Fix test to switch to KM skin before publishing gadget.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@34697 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e6388987
...@@ -69,7 +69,6 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -69,7 +69,6 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
portal = self.getPortal() portal = self.getPortal()
web_site_module = portal.web_site_module web_site_module = portal.web_site_module
self.website = web_site_module.newContent(portal_type='Web Site') self.website = web_site_module.newContent(portal_type='Web Site')
self.website.setSkinSelectionName('KM')
self.websection = self.website.newContent(portal_type='Web Section') self.websection = self.website.newContent(portal_type='Web Section')
self.app.REQUEST.set('current_web_section', self.websection) self.app.REQUEST.set('current_web_section', self.websection)
self.webpage = portal.web_page_module.newContent( self.webpage = portal.web_page_module.newContent(
...@@ -610,6 +609,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -610,6 +609,7 @@ class TestGadgets(ERP5TypeTestCase, ZopeTestCase.Functional):
subsection = self.websection.newContent(portal_type='Web Section', subsection = self.websection.newContent(portal_type='Web Section',
title='Sub Section 12345') title='Sub Section 12345')
self.stepTic() self.stepTic()
self.changeSkin('KM')
self.failUnless(subsection.getTitle() in self.failUnless(subsection.getTitle() in
self.publish(self.base_url_pattern %(self.web_section_url, self.publish(self.base_url_pattern %(self.web_section_url,
gadget_view_form_id, gadget_view_form_id,
......
1337 1338
\ 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