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
......@@ -914,7 +914,8 @@ class TestKMSearch(TestKMMixIn):
self.login()
portal = self.getPortal()
# add connection sphinx_sql_connection
# add connection sphinx_sql_connection
web_page_id = "test_web_page"
connection_id = "sphinx_sql_connection"
if connection_id not in portal.objectIds():
portal_templates = portal.portal_templates
......@@ -942,14 +943,17 @@ class TestKMSearch(TestKMMixIn):
self.stepTic()
# 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")
self.stepTic()
# reindex site
portal.ERP5Site_reindexSphinxSE()
self.stepTic()
else:
self.web_page = portal.web_page_module.restrictedTraverse(web_page_id)
@expectedFailure
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