Xqt added a comment.
The difference is as follows:
________________________ TestProtectionBot.test_summary
________________________
self = <tests.protectbot_tests.TestProtectionBot testMethod=test_summary>
def test_summary(self):
"""Test automatic (un)protection summary on the test wiki."""
site = self.get_site()
protect.main('-cat:Pywikibot Protect Test', '-always',
'-default')
protect.main('-cat:Pywikibot Protect Test', '-always',
'-unprotect')
protect.main('-cat:Pywikibot Protect Test', '-always',
'-default')
page = pywikibot.Page(site, 'User:Sn1per/ProtectTest2')
rev = list(page.revisions())
self.assertEqual(
rev[1].comment,
'Removed protection from "[[User:Sn1per/ProtectTest2]]": Bot: '
'Unprotecting all pages from category Pywikibot Protect Test')
self.maxDiff = None
self.assertEqual(
rev[0].comment,
> 'Protected "[[User:Sn1per/ProtectTest2]]": Bot: '
'Protecting all pages from category Pywikibot Protect Test '
'([Edit=Allow only administrators] (indefinite) [Move=Allow
only '
'administrators] (indefinite))')
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))'
E - Protected "[[User:Sn1per/ProtectTest2]]": Bot: Protecting all
pages from category Pywikibot Protect Test ([Move=Allow only administrators]
(indefinite) [Edit=Allow only administrators] (indefinite))
E ?
^^^^
^^^^
E + Protected "[[User:Sn1per/ProtectTest2]]": Bot: Protecting all
pages from category Pywikibot Protect Test ([Edit=Allow only administrators]
(indefinite) [Move=Allow only administrators] (indefinite))
E ?
^^^^
^^^^
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]