(self, user_manager_oauth: UserManagerMock[UserOAuthModel])
| 233 | ) |
| 234 | |
| 235 | async def test_new_user(self, user_manager_oauth: UserManagerMock[UserOAuthModel]): |
| 236 | user = await user_manager_oauth.oauth_callback( |
| 237 | "service1", "TOKEN", "new_user_oauth1", "galahad@camelot.bt", 1579000751 |
| 238 | ) |
| 239 | |
| 240 | assert user.email == "galahad@camelot.bt" |
| 241 | assert len(user.oauth_accounts) == 1 |
| 242 | assert user.oauth_accounts[0].id is not None |
| 243 | assert user.is_verified is False |
| 244 | |
| 245 | assert user_manager_oauth.on_after_register.called is True |
| 246 | |
| 247 | async def test_new_user_is_verified_by_default( |
| 248 | self, user_manager_oauth: UserManagerMock[UserOAuthModel] |
nothing calls this directly
no test coverage detected