def setUpClass(cls): """Initialize page variable.""" super(TestDisambigurationRedirectBot, cls).setUpClass() # Patch the page to be independent of the actual site cls.page = pywikibot.Page(cls.site, 'User:BobBot/Test disambig') cls.page.linkedPages = fixed_generator( [pywikibot.Page(cls.site, 'User:BobBot/Redir'), pywikibot.Page(cls.site, 'Main Page')])
def setUpClass(cls): """Initialize page variable.""" super(TestDisambigurationRedirectBot, cls).setUpClass() # Patch the page to be independent of the actual site cls.page = pywikibot.Page(cls.site, 'User:BobBot/Test disambig') cls.page.linkedPages = fixed_generator( [pywikibot.Page(cls.site, 'User:BobBot/Redir'), pywikibot.Page(cls.site, 'User:BobBot/Redir2'), pywikibot.Page(cls.site, 'Main Page')])