https://bugzilla.wikimedia.org/show_bug.cgi?id=68564
Bug ID: 68564
Summary: textlib.categoryFormat() only works for site specified
by config or command line
Product: Pywikibot
Version: core (2.0)
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: Unprioritized
Component: textlib.py
Assignee: Pywikipedia-bugs(a)lists.wikimedia.org
Reporter: jayvdb(a)gmail.com
Web browser: ---
Mobile Platform: ---
textlib.categoryFormat() only works when the categories are on the same site as
config.family/config.mylang
The breakage was introduced with:
https://gerrit.wikimedia.org/r/#/c/147845/
Which caused the ar:wikipedia and test:wikidata travis builds to break
https://travis-ci.org/wikimedia/pywikibot-core/jobs/30527485
FAIL: test_category_format_Page (__main__.TestFormatFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "tests/textlib_tests.py", line 130, in test_category_format_Page
textlib.categoryFormat(data, self.site))
AssertionError: u'[[Category:Cat1]]\n[[Category:Cat2]]\n' !=
u'[[en:Category:Cat1]]\n[[en:Category:Cat2]]\n'
- [[Category:Cat1]]
+ [[en:Category:Cat1]]
? +++
- [[Category:Cat2]]
+ [[en:Category:Cat2]]
? +++
I have tested both of these proposed changes, and neither fixes this breakage:
https://gerrit.wikimedia.org/r/#/c/147860/
https://gerrit.wikimedia.org/r/#/c/148553/
--
You are receiving this mail because:
You are the assignee for the bug.