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.9170296Z __________________________
PatrolTestCase.test_patrol __________________________
2024-06-11T18:52:04.9170848Z
2024-06-11T18:52:04.9171175Z self = <tests.token_tests.PatrolTestCase
testMethod=test_patrol>
2024-06-11T18:52:04.9171702Z
2024-06-11T18:52:04.9171848Z def setUp(self):
2024-06-11T18:52:04.9172417Z """Skip test if user does not have
token and clear site wallet."""
2024-06-11T18:52:04.9173086Z super().setUp()
2024-06-11T18:52:04.9173496Z mysite = self.get_site()
2024-06-11T18:52:04.9173996Z ttype = self.token_type
2024-06-11T18:52:04.9174397Z try:
2024-06-11T18:52:04.9174769Z token = mysite.tokens[ttype]
2024-06-11T18:52:04.9175306Z except KeyError as error_msg:
2024-06-11T18:52:04.9175802Z self.assertRegex(
2024-06-11T18:52:04.9176226Z str(error_msg),
2024-06-11T18:52:04.9176924Z f'Invalid token {ttype!r} for
user .+ on {mysite} wiki.')
2024-06-11T18:52:04.9177651Z self.assertNotIn(ttype,
self.site.tokens)
2024-06-11T18:52:04.9178232Z self.skipTest(error_msg)
2024-06-11T18:52:04.9178686Z
2024-06-11T18:52:04.9178993Z self.token = token
2024-06-11T18:52:04.9179457Z self._orig_wallet = self.site.tokens
2024-06-11T18:52:04.9180060Z > self.site.tokens =
TokenWallet(self.site)
2024-06-11T18:52:04.9180714Z E AttributeError: can't set attribute
2024-06-11T18:52:04.9181097Z
2024-06-11T18:52:04.9181285Z tests/token_tests.py:74: AttributeError
TASK DETAIL
https://phabricator.wikimedia.org/T367257
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]