tests.user_tests module#

Tests for the User page.

class tests.user_tests.TestUserClass(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, TestCase

Test User class.

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

Test registered user.

test_autoblocked_user()[source]#

Test autoblocked user.

test_autoblocked_user_with_namespace()[source]#

Test autoblocked user.

test_bot_user()[source]#

Test bot user.

test_female_user()[source]#

Test female user.

test_invalid_user()[source]#

Test invalid user.

test_locked_user()[source]#

Test global lock.

test_registered_user()[source]#

Test registered user.

test_registered_user_without_timestamp()[source]#

Test registered user when registration timestamp is None.

test_unregistered_user()[source]#

Test unregistered user.

class tests.user_tests.TestUserMethods(*args, **kwargs)[source]#

Bases: RequireLoginMixin, CheckHostnameMixin, DefaultSiteTestCase

Test User methods with bot user.

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

Test the User.usercontribs() method.

test_logevents()[source]#

Test the User.logevents() method.