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'}}#
test_png_file()[source]#

Test UploadRobot attributes and methods.

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'}}#
test_png()[source]#

Test uploading a png using upload.py.

test_png_list()[source]#

Test uploading a list of pngs using upload.py.

test_png_url()[source]#

Test uploading a png from url using upload.py.

write = True#