Xqt submitted this change.
[bugfix] fix TestPageBotMayEdit tests
Bug: T282312
Change-Id: I0351f0795f261665d7bd8f9e63d8bdb46ae56169
---
M tests/page_tests.py
1 file changed, 1 insertion(+), 1 deletion(-)
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()
To view, visit change 687149. To unsubscribe, or for help writing mail filters, visit settings.