jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/330677 )
Change subject: site_tests.py: Remove test_search_where_text and test_search_where_nearmatch ......................................................................
site_tests.py: Remove test_search_where_text and test_search_where_nearmatch
According to T154663, CirrusSearch search results are not deterministic and these tests can fail anytime without any specific meaning. Other aspects of the `search` method are covered by other tests.
Bug: T151369 Change-Id: I2d69900227d3c78a2c2e8cc11c22e84ddf01a0c5 --- M tests/site_tests.py 1 file changed, 0 insertions(+), 15 deletions(-)
Approvals: Lokal Profil: Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/site_tests.py b/tests/site_tests.py index 84ce632..9d47b58 100644 --- a/tests/site_tests.py +++ b/tests/site_tests.py @@ -1413,21 +1413,6 @@ raise unittest.SkipTest("gsrsearch returned timeout on site: %r" % e) raise
- def test_search_where_text(self): - """Test the site.search() method with 'where' parameter set to text.""" - self.assertEqual(list(self.site.search('wiki', total=10)), - list(self.site.search('wiki', total=10, - where='text'))) - - def test_search_where_nearmatch(self): - """Test the site.search(). - - 'where' parameter set to 'nearmatch'. - """ - self.assertLessEqual(len(list(self.site.search('wiki', total=10, - where='nearmatch'))), - len(list(self.site.search('wiki', total=10)))) - def test_search_where_title(self): """Test site.search() method with 'where' parameter set to title.""" try:
pywikibot-commits@lists.wikimedia.org