tests.category_bot_tests module#
Tests for the category bot script.
- class tests.category_bot_tests.CfdActions(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,DefaultSiteTestCase
Test CFD (Categories for deletion) actions.
- abstract_class = False#
- code = 'test'#
- family = 'wikipedia'#
- net = True#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- test_strip_cfd_templates_does_nothing_when_no_templates()[source]#
Test when the’re no CFD templates, the page text is not changed.
- class tests.category_bot_tests.TestPreprocessingCategory(*args, **kwargs)[source]#
Bases:
CheckHostnameMixin
,TestCase
Test determining template or type categorization target.
- abstract_class = False#
- code = 'en'#
- family = 'wikipedia'#
- net = True#
- site = True#
- sites = {'wikipedia:en': {'code': 'en', 'family': 'wikipedia'}}#