gws.test.mock
¶
Mock objects for testing.
Source code: gws.test.mock
Module Contents¶
- gws.test.mock.add_user(name, password='', roles=None, **kwargs)¶
- class gws.test.mock.AuthMethod1¶
Bases:
gws.base.auth.method.Object
- class gws.test.mock.AuthMethod2¶
Bases:
gws.base.auth.method.Object
- class gws.test.mock.AuthMfaAdapter1¶
Bases:
gws.base.auth.mfa.Object
- VALID_CODE = 'yes'¶
- check_payload(mfa, payload)¶
- class gws.test.mock.AuthProvider1¶
Bases:
gws.base.auth.provider.Object
- authenticate(method, credentials)¶
- get_user(local_uid)¶
- gws.test.mock.register(specs: gws.SpecRuntime)¶