| Xqt created this task. Xqt added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. |
TASK DESCRIPTION
CommonsHelperMethodTest.test_pageTextPost ___________________
self = <tests.imagecopy_tests.CommonsHelperMethodTest testMethod=test_pageTextPost>
def test_pageTextPost(self):
"""Test scripts.imagecopy.pageTextPost() method."""
parameters_dict = {
'language': b'id',
'image': b'Ahmad Syaikhu Wakil Walikota Bekasi.jpg',
'newname': b'Ahmad Syaikhu Wakil Walikota Bekasi.jpg',
'project': b'wikipedia',
'username': '',
'commonsense': '1',
'remove_categories': '1',
'ignorewarnings': '1',
'doit': 'Uitvoeren'}
commons_helper = pageTextPost('', parameters_dict)
# Extract the CommonsHelper description from the html
commons_helper = (
re.compile(
"<textarea .+ name='wpUploadDescription'>(.+)</textarea>",re.DOTALL | re.M).findall(commons_helper)[0])
E IndexError: list index out of range
tests/imagecopy_tests.py:41: IndexError
TASK DETAIL
EMAIL PREFERENCES
To: Xqt
Cc: Aklapper, Dalba, Xqt, pywikibot-bugs-list, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
Cc: Aklapper, Dalba, Xqt, pywikibot-bugs-list, Wenyi, Tbscho, MayS, Mdupont, JJMC89, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista, Rxy
_______________________________________________ pywikibot-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs
