Xqt created this task.
Xqt added projects: Pywikibot, Pywikibot-tests.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Steps to replicate the issue** (include links if applicable):
`pwb logentries_tests -v TestLogentryParams.test_move_entry_tewp`
**What happens?**:
D:\pwb\GIT\core>py -3.11 pwb.py logentries_tests -v
TestLogentryParams.test_move_entry_tewp
tests: max_retries reduced from 15 to 1
test_move_entry_tewp (__main__.TestLogentryParams.test_move_entry_tewp)
Test MoveEntry methods on wikipedia:test ... ERROR
======================================================================
ERROR: test_move_entry_tewp
(__main__.TestLogentryParams.test_move_entry_tewp)
Test MoveEntry methods on wikipedia:test
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\pwb\GIT\core\tests\aspects.py", line 701, in wrapped_method
func(self, key)
File "D:\pwb\GIT\core\tests\logentries_tests.py", line 222, in
test_move_entry
self.assertIsInstance(logentry.target_ns, pywikibot.site.Namespace)
^^^^^^^^^^^^^^^^^^
File "D:\pwb\GIT\core\pywikibot\logentries.py", line 255, in target_ns
return self.site.namespaces[self._params['target_ns']]
~~~~~~~~~~~~^^^^^^^^^^^^^
KeyError: 'target_ns'
----------------------------------------------------------------------
Ran 1 test in 2.534s
FAILED (errors=1)
**Other information** (browser name/version, screenshots, etc.):
This is due to a hidden log entry:
https://test.wikipedia.org/w/index.php?title=Special%3ALog&logid=359963
see https://gerrit.wikimedia.org/r/c/pywikibot/core/+/908037
TASK DETAIL
https://phabricator.wikimedia.org/T334672
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt
Cc: Aklapper, pywikibot-bugs-list, Xqt, PotsdamLamb, Jyoo1011, JohnsonLee01,
SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Framawiki,
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]