Commit f0ed82ce authored by Ivan Tyagov's avatar Ivan Tyagov

Bug fix test.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44246 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f074f5b
...@@ -915,6 +915,7 @@ class TestKMSearch(TestKMMixIn): ...@@ -915,6 +915,7 @@ class TestKMSearch(TestKMMixIn):
portal = self.getPortal() portal = self.getPortal()
# add connection sphinx_sql_connection # add connection sphinx_sql_connection
web_page_id = "test_web_page"
connection_id = "sphinx_sql_connection" connection_id = "sphinx_sql_connection"
if connection_id not in portal.objectIds(): if connection_id not in portal.objectIds():
portal_templates = portal.portal_templates portal_templates = portal.portal_templates
...@@ -942,13 +943,16 @@ class TestKMSearch(TestKMMixIn): ...@@ -942,13 +943,16 @@ class TestKMSearch(TestKMMixIn):
self.stepTic() self.stepTic()
# add some test data # add some test data
self.web_page = portal.web_page_module.newContent(portal_type='Web Page', self.web_page = portal.web_page_module.newContent(id=web_page_id,
portal_type='Web Page',
text_content="Sphinx search tool page") text_content="Sphinx search tool page")
self.stepTic() self.stepTic()
# reindex site # reindex site
portal.ERP5Site_reindexSphinxSE() portal.ERP5Site_reindexSphinxSE()
self.stepTic() self.stepTic()
else:
self.web_page = portal.web_page_module.restrictedTraverse(web_page_id)
@expectedFailure @expectedFailure
def test_01_NoZODBSphinxSeSearch(self): def test_01_NoZODBSphinxSeSearch(self):
......
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