jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/346768 )
Change subject: redirect_bot_tests: Use assert_called_with instead of
assert_called_once_with
......................................................................
redirect_bot_tests: Use assert_called_with instead of assert_called_once_with
There is a warning during the initialization of the RedirectRobot on wsbeta
which causes failure. Ignore it.
Bug: T162356
Change-Id: I4c8c4ee1a32a4538171637baf840437de52a45f9
---
M tests/redirect_bot_tests.py
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
jenkins-bot: Verified
Xqt: Looks good to me, approved
diff --git a/tests/redirect_bot_tests.py b/tests/redirect_bot_tests.py
index 3ae8e9d..358ae7d 100644
--- a/tests/redirect_bot_tests.py
+++ b/tests/redirect_bot_tests.py
@@ -48,7 +48,7 @@
"""Test with delete and no i18n template."""
with patch.object(pywikibot, 'warning') as w:
bot = RedirectRobot('broken', None, delete=True)
- w.assert_called_once_with('No speedy deletion template available.')
+ w.assert_called_with('No speedy deletion template available.')
self.assertEqual(bot.sdtemplate, None)
def test_with_delete_and_non_existing_sdtemplate(self):
@@ -57,5 +57,5 @@
with patch.object(Page, 'exists', new=Mock(return_value=False)):
with patch.object(pywikibot, 'warning') as w:
bot = RedirectRobot('broken', None, **options)
- w.assert_called_once_with('No speedy deletion template "n"
available.')
+ w.assert_called_with('No speedy deletion template "n"
available.')
self.assertEqual(bot.sdtemplate, None)
--
To view, visit
https://gerrit.wikimedia.org/r/346768
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I4c8c4ee1a32a4538171637baf840437de52a45f9
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Magul <tomasz.magulski(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>