tests.template_bot_tests module#

Test template bot module.

class tests.template_bot_tests.TestXMLPageGenerator(*args, **kwargs)[source]#

Bases: DisconnectedSiteMixin, TestCase

Test XML Page generator.

abstract_class = False#
code = 'en'#
dry = True#
family = 'wikipedia'#
generator(title, xml='article-pear-0.10.xml')[source]#

Return XMLDumpPageGenerator list for a given template title.

site = True#
sites = {'wikipedia:en': {'code': 'en', 'family': 'wikipedia'}}#
test_match()[source]#

Test pages with one match without parameters.

test_match_any()[source]#

Test pages with one of many matches.

test_match_msg()[source]#

Test pages with {{msg:..}}.

test_match_unnecessary_template_prefix()[source]#

Test pages with {{template:..}}.

test_match_with_params()[source]#

Test pages with one match with parameters.

test_nested_match()[source]#

Test pages with one match inside another template.

test_no_match()[source]#

Test pages without any desired templates.