| Dalba created this task. Dalba added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
https://travis-ci.org/wikimedia/pywikibot-core/jobs/277400568#L3822
=================================== FAILURES ===================================
____________________ SearchTestCase.test_search_where_title ____________________ self = <tests.site_tests.SearchTestCase testMethod=test_search_where_title> def test_search_where_title(self): """Test site.search() method with 'where' parameter set to title.""" try: for hit in self.site.search('wiki', namespaces=0, total=10, get_redirects=True, where='title'): self.assertIsInstance(hit, pywikibot.Page) self.assertEqual(hit.namespace(), 0) > self.assertIn('wiki', hit.title().lower()) E AssertionError: 'wiki' not found in '3d printed firearms'
====================================================================== FAIL: test_search_where_title (tests.site_tests.SearchTestCase) Test site.search() method with 'where' parameter set to title. ---------------------------------------------------------------------- Traceback (most recent call last): File "c:\projects\pywikibot-core-hdpnk\tests\site_tests.py", line 1490, in test_search_where_title self.assertIn('wiki', hit.title().lower()) AssertionError: 'wiki' not found in '3d printed firearms'
It seems that the results not only include article titles that include that the requested term but also article which have redirected titles with it:
https://en.wikipedia.org/w/index.php?title=Wiki_Weapon&redirect=no
TASK DETAIL
EMAIL PREFERENCES
To: Dalba
Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
Cc: Aklapper, pywikibot-bugs-list, Dalba, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
