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'}}#
- write = True#