tests.flow_tests module#

Tests for the flow module.

class tests.flow_tests.TestBoardBasePageMethods(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, BasePageMethodsTestBase, TestMediaWikiFlowSandbox

Test Flow board pages using BasePage-defined methods.

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

Test basic Page methods on a Flow board page.

test_content_model()[source]#

Test Flow page content model.

class tests.flow_tests.TestFlowFactoryErrors(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, ForceCacheMixin, TestCase

Test errors associated with class methods generating Flow objects.

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

Test illegal method arguments.

test_invalid_data()[source]#

Test invalid “API” data.

class tests.flow_tests.TestFlowLoading(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, ForceCacheMixin, TestMediaWikiFlowSandbox

Test loading of Flow objects from the API.

abstract_class = False#
cached = True#
code = 'mediawiki'#
family = 'mediawiki'#
net = True#
site = True#
sites = {'mediawiki:mediawiki': {'code': 'mediawiki', 'family': 'mediawiki'}}#
test_board_uuid()[source]#

Test retrieval of Flow board UUID.

test_post_contents()[source]#

Test retrieval of Flow post contents.

test_post_uuid()[source]#

Test retrieval of Flow post UUID.

This doesn’t really “load” anything from the API. It just tests the property to make sure the UUID passed to the constructor is stored properly.

test_topic_uuid()[source]#

Test retrieval of Flow topic UUID.

test_topiclist()[source]#

Test loading of topiclist.

class tests.flow_tests.TestFlowTopic(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, TestCase

Test Topic functions.

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

Test general functions of the Topic class.

test_topic_moderation()[source]#

Test Topic functions about moderation.

class tests.flow_tests.TestLoadRevisionsCaching(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, BasePageLoadRevisionsCachingTestBase, TestMediaWikiFlowSandbox

Test site.loadrevisions() caching.

abstract_class = False#
cached = False#
code = 'mediawiki'#
family = 'mediawiki'#
net = True#
site = True#
sites = {'mediawiki:mediawiki': {'code': 'mediawiki', 'family': 'mediawiki'}}#
test_page_text()[source]#

Test site.loadrevisions() with Page.text.

class tests.flow_tests.TestMediaWikiFlowSandbox(*args, **kwargs)[source]#

Bases: TestCase

Test the Flow sandbox on MediaWiki.org.

abstract_class = True#
code = 'mediawiki'#
family = 'mediawiki'#
setUp()[source]#

Set up unit test.

class tests.flow_tests.TestTopicBasePageMethods(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, BasePageMethodsTestBase

Test Flow topic pages using BasePage-defined methods.

abstract_class = False#
code = 'mediawiki'#
family = 'mediawiki'#
net = True#
setUp()[source]#

Set up unit test.

site = True#
sites = {'mediawiki:mediawiki': {'code': 'mediawiki', 'family': 'mediawiki'}}#
test_basepage_methods()[source]#

Test basic Page methods on a Flow topic page.

test_content_model()[source]#

Test Flow topic page content model.