Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
2024-06-11T18:52:04.8965553Z ________________________
TestProtectionBot.test_summary ________________________
2024-06-11T18:52:04.8966067Z
2024-06-11T18:52:04.8966445Z self =
<tests.protectbot_tests.TestProtectionBot testMethod=test_summary>
2024-06-11T18:52:04.8966999Z
2024-06-11T18:52:04.8967150Z def test_summary(self):
2024-06-11T18:52:04.8967703Z """Test automatic (un)protection
summary on the test wiki."""
2024-06-11T18:52:04.8968526Z site = self.get_site()
2024-06-11T18:52:04.8969139Z protect.main('-cat:Pywikibot Protect
Test', '-always',
2024-06-11T18:52:04.8969769Z '-default')
2024-06-11T18:52:04.8970370Z protect.main('-cat:Pywikibot Protect
Test', '-always',
2024-06-11T18:52:04.8970987Z '-unprotect')
2024-06-11T18:52:04.8971611Z protect.main('-cat:Pywikibot Protect
Test', '-always',
2024-06-11T18:52:04.8972229Z '-default')
2024-06-11T18:52:04.8972863Z page = pywikibot.Page(site,
'User:Sn1per/ProtectTest2')
2024-06-11T18:52:04.8973493Z rev = list(page.revisions())
2024-06-11T18:52:04.8973963Z self.assertEqual(
2024-06-11T18:52:04.8974345Z rev[1].comment,
2024-06-11T18:52:04.8975000Z 'Removed protection from
"[[User:Sn1per/ProtectTest2]]": Bot: '
2024-06-11T18:52:04.8975907Z 'Unprotecting all pages from
category Pywikibot Protect Test')
2024-06-11T18:52:04.8976554Z self.assertEqual(
2024-06-11T18:52:04.8976936Z rev[0].comment,
2024-06-11T18:52:04.8977678Z > 'Protected
"[[User:Sn1per/ProtectTest2]]": Bot: '
2024-06-11T18:52:04.8978504Z 'Protecting all pages from
category Pywikibot Protect Test '
2024-06-11T18:52:04.8979393Z '([Edit=Allow only administrators]
(indefinite) [Move=Allow only '
2024-06-11T18:52:04.8980153Z 'administrators] (indefinite))')
2024-06-11T18:52:04.8981618Z E AssertionError: 'Prot[98 chars]st
([Move=Allow only administrators] (indefini[46 chars]te))' != 'Prot[98 chars]st
([Edit=Allow only administrators] (indefini[46 chars]te))'
2024-06-11T18:52:04.8983037Z E Diff is 723 characters long. Set
self.maxDiff to None to see it.
TASK DETAIL
https://phabricator.wikimedia.org/T367259
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, Xqt, pywikibot-bugs-list, mevo, PotsdamLamb, Jyoo1011,
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Aram, Viztor, Wenyi, Tbscho,
MayS, Mdupont, JJMC89, Dvorapa, Altostratus, binbot, Avicennasis, mys_721tx,
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]