tests.uploadbot_tests module#
UploadRobot test.
These tests write to the wiki.
- class tests.uploadbot_tests.TestDryUploadbot(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,DefaultSiteTestCase
Dry tests UploadRobot.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- net = True#
- params = {'aborts': {}, 'description': 'pywikibot upload.py script test', 'ignore_warning': True, 'keep_filename': True}#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- class tests.uploadbot_tests.TestUploadbot(*args, **kwargs)[source]#
Bases:
RequireLoginMixin
,SiteWriteMixin
,CheckHostnameMixin
,TestCase
Test cases for upload.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- login = True#
- net = True#
- params = {'aborts': {}, 'description': 'pywikibot upload.py script test', 'ignore_warning': True, 'keep_filename': True}#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- write = True#