tests.flow_edit_tests module#

Edit tests for the flow module.

class tests.flow_edit_tests.FlowTests(*args, **kwargs)[source]#

Bases: TestCase

Flow tests base class.

abstract_class = True#
code = 'test'#
family = 'wikipedia'#
login = True#
restored(flow)[source]#

Setup and restore test.

setUp()[source]#

Setup tests.

write = True#
class tests.flow_edit_tests.TestFlowCreateTopic(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, TestCase

Test the creation of Flow topics.

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

Test creation of topic.

test_summarize_topic()[source]#

Test summarize topic we just created.

write = True#
class tests.flow_edit_tests.TestFlowEditFailure(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, TestCase

Flow-related edit failure tests.

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

Test replying to locked topic (should raise exception).

write = -1#
class tests.flow_edit_tests.TestFlowHide(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, FlowTests

Hiding topics and posts.

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

Hide and restore a test topic and post.

write = True#
class tests.flow_edit_tests.TestFlowLockTopic(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, TestCase

Locking and unlocking topics.

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

Lock and unlock a test topic.

write = True#
class tests.flow_edit_tests.TestFlowReply(*args, **kwargs)[source]#

Bases: RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, TestCase

Test replying to existing posts.

abstract_class = False#
code = 'test'#
family = 'wikipedia'#
login = True#
net = True#
classmethod setUpClass()[source]#

Set up class.

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

Test replying to a previous reply to a topic.

test_reply_to_post()[source]#

Test replying to an ordinary post.

test_reply_to_topic()[source]#

Test replying to “topic” (really the topic’s root post).

test_reply_to_topic_root()[source]#

Test replying to the topic’s root post directly.

write = True#
class tests.flow_edit_tests.TestFlowSysop(*args, **kwargs)[source]#

Bases: NeedRightsMixin, RequireLoginMixin, SiteWriteMixin, CheckHostnameMixin, FlowTests

Deleting and Suppressing topics and posts.

abstract_class = False#
code = 'test'#
family = 'wikipedia'#
login = True#
net = True#
rights = 'flow-delete,flow-suppress'#
site = True#
sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
test_delete()[source]#

Delete and restore a test topic and post.

test_suppress()[source]#

Suppress and restore a test topic and post.

write = True#