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_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_using_reserved_emails(_mock_import_user: MagicMock)
Test to ensure that a user does not use a reserved username