tests.login_tests module#
Tests for LoginManager classes.
e.g. used to test password-file based login.
- class tests.login_tests.FakeConfig[source]#
Bases:
object
Mock.
- usernames = {'~FakeFamily': {'~FakeCode': '~FakeUsername'}}#
- class tests.login_tests.FakeSite[source]#
Bases:
object
Mock.
- code = '~FakeCode'#
- family#
alias of
FakeFamily
- class tests.login_tests.TestOfflineLoginManager(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,DefaultDrySiteTestCase
Test offline operation of login.LoginManager.
- abstract_class = False#
- code = 'test'#
- dry = True#
- family = 'wikipedia'#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#
- class tests.login_tests.TestPasswordFile(*args, **kwargs)[source]#
Bases:
DisconnectedSiteMixin
,DefaultDrySiteTestCase
Test parsing password files.
- abstract_class = False#
- code = 'test'#
- dry = True#
- family = 'wikipedia'#
- site = True#
- sites = {'wikipedia:test': {'code': 'test', 'family': 'wikipedia'}}#