tests.checkimages_tests module#

Unit tests for checkimages script.

class tests.checkimages_tests.TestMethods(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, DefaultSiteTestCase

Test methods of CheckImagesBot.

abstract_class = False#
code = 'test'#
family = 'wikipedia'#
net = True#
site = True#
sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
test_important_image()[source]#

Test important_image method.

class tests.checkimages_tests.TestSettings(*args, **kwargs)[source]#

Bases: RequireLoginMixin, CheckHostnameMixin, TestCase

Test checkimages settings.

abstract_class = False#
code = 'commons'#
family = 'commons'#
login = True#
net = True#
site = True#
sites = {'commons:commons': {'code': 'commons', 'family': 'commons'}}#
test_load()[source]#

Test loading settings.