jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/407631 )
Change subject: [bugfix][TEST] Fix broken solve_disambiguation.py test ......................................................................
[bugfix][TEST] Fix broken solve_disambiguation.py test
Bug: T186316 Change-Id: I6ec32397169b94f9639e656df31ee80b5ca9da28 --- M tests/solve_disambiguation_tests.py 1 file changed, 3 insertions(+), 3 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/tests/solve_disambiguation_tests.py b/tests/solve_disambiguation_tests.py index 9c86bb3..ab9e766 100644 --- a/tests/solve_disambiguation_tests.py +++ b/tests/solve_disambiguation_tests.py @@ -28,8 +28,8 @@ page.text = '* [[Link1]]\n* [[Link2]]' newlinks = bot.get_disambiguation_links(page) links = [ - pywikibot.Link(self.site, 'Link1'), - pywikibot.Link(self.site, 'Link2')] + pywikibot.Link('Link1', self.site), + pywikibot.Link('Link2', self.site)] self.assertEqual(newlinks, links)
def test_get_without_templates(self): @@ -39,7 +39,7 @@ minimum=0) page.text = '* [[Link1]]\n{{Disambig}}' newlinks = bot.get_disambiguation_links(page) - links = [pywikibot.Link(self.site, 'Link1')] + links = [pywikibot.Link('Link1', self.site)] self.assertEqual(newlinks, links)
pywikibot-commits@lists.wikimedia.org