tests.oauth_tests module#

Test OAuth functionality.

class tests.oauth_tests.OAuthSiteTestCase(*args, **kwargs)[source]#

Bases: TestCase

Run tests related to OAuth authentication.

abstract_class = True#
oauth = True#
setUp()[source]#

Check if OAuth extension is installed and OAuth tokens are set.

class tests.oauth_tests.TestOauthLoginManger(*args, **kwargs)[source]#

Bases: CheckHostnameMixin, DefaultSiteTestCase, OAuthSiteTestCase

Test OAuth login manager.

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

Test identity.

test_login()[source]#

Test login.