pywikitools.test.test_resourcesbot#
Testing ResourcesBot
Currently we have only little test coverage… TODO: Find ways to run meaningful tests that don’t take too long…
Module Contents#
Classes#
We mock pywikibot because otherwise we would need to provide a valid user-config.py (and because it saves time) |
- class pywikitools.test.test_resourcesbot.TestResourcesBot(methodName='runTest')#
Bases:
unittest.TestCaseWe mock pywikibot because otherwise we would need to provide a valid user-config.py (and because it saves time)
- setUp(self)#
Hook method for setting up the test fixture before exercising it.
- tearDown(self)#
Hook method for deconstructing the test fixture after testing it.
- static json_test_loader(site, page: str)#
Load meaningful test data for languages.json, en.json and ru.json