Commit 184e3e02 authored by Ivan Tyagov's avatar Ivan Tyagov

Do not use afterSetup as we can't handle expectedFailures.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44273 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fbbfc91d
...@@ -910,7 +910,7 @@ class TestKMSearch(TestKMMixIn): ...@@ -910,7 +910,7 @@ class TestKMSearch(TestKMMixIn):
business_template_list = TestKMMixIn.business_template_list + ["erp5_km_ui_test_data", "erp5_km_sphinxse_full_text_search"] business_template_list = TestKMMixIn.business_template_list + ["erp5_km_ui_test_data", "erp5_km_sphinxse_full_text_search"]
def afterSetUp(self): def setupSphinx(self):
self.login() self.login()
portal = self.getPortal() portal = self.getPortal()
...@@ -963,6 +963,7 @@ class TestKMSearch(TestKMMixIn): ...@@ -963,6 +963,7 @@ class TestKMSearch(TestKMMixIn):
until test environment is properly setup. until test environment is properly setup.
See http://www.erp5.org/HowToUseSphinxSE See http://www.erp5.org/HowToUseSphinxSE
""" """
self.setupSphinx()
portal = self.portal portal = self.portal
website = self.portal.web_site_module.km_test_web_site website = self.portal.web_site_module.km_test_web_site
...@@ -987,6 +988,7 @@ class TestKMSearch(TestKMMixIn): ...@@ -987,6 +988,7 @@ class TestKMSearch(TestKMMixIn):
""" """
Test determing list of documents web section. Test determing list of documents web section.
""" """
self.setupSphinx()
portal = self.portal portal = self.portal
website = self.portal.web_site_module.km_test_web_site website = self.portal.web_site_module.km_test_web_site
web_page = self.web_page web_page = self.web_page
...@@ -1019,8 +1021,6 @@ class TestKMSearch(TestKMMixIn): ...@@ -1019,8 +1021,6 @@ class TestKMSearch(TestKMMixIn):
self.assertSameSet([], \ self.assertSameSet([], \
[portal.restrictedTraverse(x) for x in search_result_list[0].section_list]) [portal.restrictedTraverse(x) for x in search_result_list[0].section_list])
def test_suite(): def test_suite():
suite = unittest.TestSuite() suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestKM)) suite.addTest(unittest.makeSuite(TestKM))
......
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