tests.protectbot_tests module#

Tests for scripts/protect.py.

class tests.protectbot_tests.TestProtectionBot(*args, **kwargs)[source]#

Bases: RequireLoginMixin, NeedRightsMixin, SiteWriteMixin, CheckHostnameMixin, ScriptMainTestCase

Test ProtectionBot protect/unprotect capabilities.

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

Test ProtectionBot protect/unprotect on the test wiki.

test_summary()[source]#

Test automatic (un)protection summary on the test wiki.

write = True#