Xqt has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/687149 )
Change subject: [bugfix] fix TestPageBotMayEdit tests ......................................................................
[bugfix] fix TestPageBotMayEdit tests
Bug: T282312 Change-Id: I0351f0795f261665d7bd8f9e63d8bdb46ae56169 --- M tests/page_tests.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Xqt: Verified; Looks good to me, approved jenkins-bot: Verified
diff --git a/tests/page_tests.py b/tests/page_tests.py index eb9e7be..87c75b2 100644 --- a/tests/page_tests.py +++ b/tests/page_tests.py @@ -766,7 +766,7 @@ def _run_test(self, template, user, expected_result): """Run a single template test.""" del self.page.text - self.page._text = template.format(user=user) + self.page._text = template % {'user': user} with self.subTest(template=template, user=user): self.assertEqual(self.page.botMayEdit(), expected_result) self.page.botMayEdit.cache_clear()
pywikibot-commits@lists.wikimedia.org