[Pywikipedia-bugs] [Maniphest] [Triaged] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Xqt
Xqt triaged this task as "High" priority. TASK DETAIL https://phabricator.wikimedia.org/T323413 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Xqt Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Updated] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa added a comment. It seems this commit broke the behavior: rPWBC76cbce788c6db42b5285140d100245c8bdc3cd87 , before it it still works as expected TASK DETAIL https://phabricator.wikimedia.org/T323413

[Pywikipedia-bugs] [Maniphest] [Commented On] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa added a comment. Why does Category.members() calls Category.subcategories()? This seems to be completely wrong: https://phabricator.wikimedia.org/diffusion/PWBC/browse/master/pywikibot/page/_category.py$196 Also the `member_type='subcat'` is lost in `if recurse:` condition,

[Pywikipedia-bugs] [Maniphest] [Edited] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T323413 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Edited] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T323413 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Commented On] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa added a comment. Reverting `subcategories` method to its state from May fixes the issue: def subcategories(self, recurse: Union[int, bool] = False, total: Optional[int] = None, content:

[Pywikipedia-bugs] [Maniphest] [Edited] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa updated the task description. TASK DETAIL https://phabricator.wikimedia.org/T323413 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dvorapa Cc: Xqt, Aklapper, pywikibot-bugs-list, Dvorapa, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH,

[Pywikipedia-bugs] [Maniphest] [Created] T323413: Category.subcategories(recurse=True) no longer works

2022-11-18 Thread Dvorapa
Dvorapa created this task. Dvorapa added a project: Pywikibot. Restricted Application added subscribers: pywikibot-bugs-list, Aklapper. TASK DESCRIPTION **Steps to reproduce** import pywikibot s=pywikibot.Site('test2', 'wikipedia') for i in s.allpages(namespace=14,

[pywikibot] Application testing strategies?

2022-11-18 Thread Roy Smith
I'm diving into my first serious PWB application. I'm using it as a library to replace mwclient. I'm not sure how to approach testing. I'd really like something which is isolated from making actual API calls (i.e. hermetic unit tests). Does there exist a mechanism to do that? What I've

[pywikibot] Re: Do I need pwb.py?

2022-11-18 Thread Bináris
ezt írta (időpont: 2022. nov. 17., Cs, 20:56): > Hi Binaris, > > > Seems the config.log variable isn’t an empty list. Refer my other may to > figure it out. > For some reason, I had log = ['*'] # type: List[str] in my user-config. I don't know why, at least I don't remember modifying it at any