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):
D:\pwb\GIT\core>pwb -lang:en script_tests -v TestScriptGenerator.test_basic
tests: max_retries reduced from 15 to 1
create_isbn_edition depends on isbnlib, which isn't available
test_basic (__main__.TestScriptGenerator.test_basic)
Test running basic -simulate -page:Foobar -always -site:wikipedia:en. ...
FAIL
======================================================================
FAIL: test_basic (__main__.TestScriptGenerator.test_basic)
Test running basic -simulate -page:Foobar -always -site:wikipedia:en.
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\pwb\GIT\core\tests\script_tests.py", line 240, in test_script
self.assertIn(error, err_result)
AssertionError: 'Script terminated successfully' not found in 'Retrieving 1
pages from wikipedia:en.\r\n@@ -57 +57 @@ ***\r\n- [[Category:Articles with
example C code]] ***\r\n+ [[Category:Articles with example C code]]Test
***\r\n\r\nEdit summary: Bot: Changing ...\r\nWARNING: No user is logged in on
site wikipedia:en\r\n'
----------------------------------------------------------------------
Ran 1 test in 5.775s
FAILED (failures=1)
See also
https://github.com/wikimedia/pywikibot/actions/runs/3892935850/jobs/6658065107
After explicit login it gives:
D:\pwb\GIT\core>pwb login -lang:en
Logged in on wikipedia:en as Xqtest.
Execution time: 0 seconds
D:\pwb\GIT\core>pwb -lang:en script_tests -v TestScriptGenerator.test_basic
tests: max_retries reduced from 15 to 1
create_isbn_edition depends on isbnlib, which isn't available
test_basic (__main__.TestScriptGenerator.test_basic)
Test running basic -simulate -page:Foobar -always -site:wikipedia:en. ... ok
----------------------------------------------------------------------
Ran 1 test in 4.176s
OK
After deleting the lwp file is gives
D:\pwb\GIT\core>pwb -lang:en script_tests -v TestScriptGenerator.test_basic
tests: max_retries reduced from 15 to 1
create_isbn_edition depends on isbnlib, which isn't available
setUpClass (__main__.TestScriptGenerator) ... skipped 'TestScriptGenerator:
Not able to login to wikipedia:en'
----------------------------------------------------------------------
Ran 0 tests in 1.726s
OK (skipped=1)
**What should be happen:**
Always login if required
TASK DETAIL
https://phabricator.wikimedia.org/T326779
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, Avicennasis, mys_721tx, jayvdb, Masti,
Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]