MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users / test_new_user

Method test_new_user

tests/test_manager.py:235–245  ·  view source on GitHub ↗
(self, user_manager_oauth: UserManagerMock[UserOAuthModel])

Source from the content-addressed store, hash-verified

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]

Callers

nothing calls this directly

Calls 1

oauth_callbackMethod · 0.80

Tested by

no test coverage detected