| Xqt created this task. Xqt added projects: Pywikibot-core, Pywikibot-tests. Herald added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
TestScriptSimulate.test_editarticle Fails after d36a8e1 has been merged.
=================================== FAILURES =================================== _____________________ TestScriptSimulate.test_editarticle ______________________
self = <tests.script_tests.TestScriptSimulate testMethod=test_editarticle>
def testScript(self):
GLOBAL_ARGS = 'Global arguments available for all'
cmd = [script_name]
if args:
cmd += args
data_in = script_input.get(script_name)
timeout = 0
if is_autorun:
timeout = 5
if self._results and script_name in self._results:
error = self._results[script_name]
if isinstance(error, StringTypes):
stdout = None
else:
stdout, error = error
else:
stdout = None
error = None
test_overrides = {}
if not hasattr(self, 'net') or not self.net:
test_overrides['pywikibot.Site'] = 'None'
result = execute_pwb(cmd, data_in, timeout=timeout,
error=error, overrides=test_overrides)
stderr = result['stderr'].splitlines()
stderr_sleep = [l for l in stderr
if l.startswith('Sleeping for ')]
stderr_other = [l for l in stderr
if not l.startswith('Sleeping for ')]
if stderr_sleep:
unittest_print('\n'.join(stderr_sleep))
if result['exit_code'] == -9:
unittest_print(' killed', end=' ')
if error:
> self.assertIn(error, result['stderr'])
E AssertionError: u'Nothing changed' not found in u'Page to edit: Traceback (most recent call last):\n File "/home/travis/build/wikimedia/pywikibot/pwb.py", line 251, in <module>\n if not main():\n File "/home/travis/build/wikimedia/pywikibot/pwb.py", line 244, in main\n run_python_file(filename, [filename] + args, argvu, file_package)\n File "/home/travis/build/wikimedia/pywikibot/pwb.py", line 115, in run_python_file\n main_mod.__dict__)\n File "./scripts/editarticle.py", line 132, in <module>\n main()\n File "./scripts/editarticle.py", line 127, in main\n app = ArticleEditor(*args)\n File "./scripts/editarticle.py", line 55, in __init__\n self.setpage()\n File "./scripts/editarticle.py", line 81, in setpage\n self.page = pywikibot.Page(pywikibot.Link(pageTitle, self.site))\nAttributeError: \'ArticleEditor\' object has no attribute \'site\'\nCRITICAL: Closing network session.\n'
tests/script_tests.py:285: AssertionErrorTASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Dalba, jayvdb, Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Masti, Alchimista, Rxy
Cc: Dalba, jayvdb, Aklapper, Xqt, pywikibot-bugs-list, Magul, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
