thunderbird_accounts.authentication.tests.test_api
Classes
|
|
|
|
|
|
|
|
|
|
|
- class thunderbird_accounts.authentication.tests.test_api.SignUpTestcase(methodName='runTest')[source]
Bases:
APITestCase- make_sign_up_data(*args, **kwargs) dict[source]
Factory for sign up data. Pass in kwargs to override any data you need.
- test_success(mock_import_user: MagicMock)
Test that an unauthenticated user can sign-up if they’re in the allow list.
- test_success_stores_display_name(mock_import_user: MagicMock)
The name entered during sign-up is stored on the local user and forwarded to Keycloak.
- test_success_without_name_falls_back_to_username(mock_import_user: MagicMock)
When no name is provided the display name falls back to the username and Keycloak gets no name.
- test_success_with_zoneinfo_null(mock_import_user: MagicMock)
Test that an unauthenticated user can sign-up if they’re in the allow list.
- test_not_on_allowed_list(mock_import_user: MagicMock)
Test that a recovery email not on the allow list will ship them to the wait list
- test_user_already_exists(mock_import_user: MagicMock)
Test that we check if a user exists before creating a user
- test_user_alias_already_exists(mock_import_user: MagicMock)
When signing up make sure we’re not using a username on a shared domain
- test_user_using_reserved_emails(_mock_import_user: MagicMock)
Test to ensure that a user does not use a reserved username
- class thunderbird_accounts.authentication.tests.test_api.CanISignUpTestcase(methodName='runTest')[source]
Bases:
APITestCase
- class thunderbird_accounts.authentication.tests.test_api.CreateTestAllowListEntryTestCase(methodName='runTest')[source]
Bases:
APITestCase
- class thunderbird_accounts.authentication.tests.test_api.WaffleFlagsTestcase(methodName='runTest')[source]
Bases:
APITestCase