jenkins-bot has submitted this change and it was merged.
Change subject: Skip search test for sites using Wikia Search ......................................................................
Skip search test for sites using Wikia Search
The search API module is disabled on Wikia sites. The method they use to disable the search module is not yet known.
Skip this test on any site that is using extension Wikia Search, so that this test is still triggered on any other site which has disabled the search module.
Bug: T77968 Change-Id: I1e55fbc8ec77fdaea51b9565078a28622c4a260a --- M tests/site_tests.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: John Vandenberg: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_tests.py b/tests/site_tests.py index 406e969..71b2304 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -908,6 +908,9 @@ def testSearch(self): """Test the site.search() method.""" mysite = self.get_site() + if mysite.has_extension("Wikia Search"): + raise unittest.SkipTest( + 'The site %r does not use MediaWiki search' % mysite) try: se = list(mysite.search("wiki", total=100)) self.assertLessEqual(len(se), 100)