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.

test_strip_cfd_templates_with_spaces_in_comments()[source]#

Test CFD templates with spaces in the syntax are removed.

test_strip_cfd_templates_without_spaces_in_comments()[source]#

Test CFD templates without spaces in the syntax are removed.

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

Test determining template target.

test_determine_type_target()[source]#

Test determining type target.