Page MenuHomePhabricator

TestCase with net=False may fail because bot.init_handlers needs a Site object to get the PID
Closed, ResolvedPublic

Description

aspects.DisableSiteMixin will fail if a pywikibot.Site() is used. This is the case if net = False for a TestCase.

Event Timeline

Xqt triaged this task as Medium priority.May 31 2021, 1:35 PM

Change 697437 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [tests] Do not call pywikibot.Site() if aspects.DisableSiteMixin is used

https://gerrit.wikimedia.org/r/697437

Change 697437 merged by jenkins-bot:

[pywikibot/core@master] [tests] Do not call pywikibot.Site() if aspects.DisableSiteMixin is used

https://gerrit.wikimedia.org/r/697437