jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/335193 )
Change subject: test_bot_may_edit_general: Make sure `ignore_bot_templates` is False ......................................................................
test_bot_may_edit_general: Make sure `ignore_bot_templates` is False
Previously, if ignore_bot_templates was set to True in user-config.py, the test would have failed with the following error:
Failure Traceback (most recent call last): File "...\pywikibot-core\tests\page_tests.py", line 709, in test_bot_may_edit_general self.assertFalse(page.botMayEdit()) AssertionError: True is not false
Change-Id: I4118b2cb42950e030fa81f70ff8b06e54233758e --- M tests/page_tests.py 1 file changed, 1 insertion(+), 0 deletions(-)
Approvals: jenkins-bot: Verified Sn1per: Looks good to me, approved
diff --git a/tests/page_tests.py b/tests/page_tests.py index fa2f2f2..deb0274 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -691,6 +691,7 @@ cached = True user = True
+ @mock.patch.object(config, 'ignore_bot_templates', False) def test_bot_may_edit_general(self): """Test that bot is allowed to edit.""" site = self.get_site()
pywikibot-commits@lists.wikimedia.org