tests.paraminfo_tests module#

Test confirming paraminfo contains expected values.

class tests.paraminfo_tests.EchoKnownTypesTestCase(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, KnownTypesTestBase, WikimediaDefaultSiteTestCase

Verify Echo types using paraminfo.

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

Test Echo notification types.

class tests.paraminfo_tests.KnownTypesTestBase(methodName='runTest')[source]#

Bases: TestCaseBase

Base class for paraminfo checks.

Create an instance of the class that will use the named test method when executed. Raises a ValueError if the instance does not have a method with the specified name.

class tests.paraminfo_tests.MediaWikiKnownTypesTestCase(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, KnownTypesTestBase, DefaultSiteTestCase

Verify MediaWiki types using paraminfo.

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

Test api format.

test_assert_user()[source]#

Test assert type.

test_content_format()[source]#

Test content format.

test_content_model()[source]#

Test content model.

test_feed_format()[source]#

Test feed format.

test_revision_deletion_level()[source]#

Test revision deletion level.

test_revision_deletion_type()[source]#

Test revision deletion type.

test_revision_deletion_what()[source]#

Test revision deletion part.

test_watchlist_modification_flag()[source]#

Test watchlist modification flag.

test_watchlist_show_flags()[source]#

Test watchlist show flags.

test_watchlist_type()[source]#

Test watchlist type.

class tests.paraminfo_tests.SiteMatrixKnownTypesTestCase(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, KnownTypesTestBase, WikimediaDefaultSiteTestCase

Verify Echo types using paraminfo.

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

Test site matrix state.

test_site_matrix_type()[source]#

Test site matrix type.

class tests.paraminfo_tests.WikibaseKnownTypesTests(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, KnownTypesTestBase, DefaultWikibaseClientTestCase

Verify Wikibase types using paraminfo.

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

Test that all encountered datatypes are known.

test_entities()[source]#

Test known entities.

test_rank()[source]#

Test known ranks.

test_snaktype()[source]#

Test known snak types.

wikibase = True#