MCPcopy Create free account
hub / github.com/fastapi-users/fastapi-users / test_existing_user

Method test_existing_user

tests/test_manager.py:112–119  ·  view source on GitHub ↗
(
        self, user_manager_oauth: UserManagerMock[UserModel], user_oauth: UserOAuthModel
    )

Source from the content-addressed store, hash-verified

110 await user_manager_oauth.get_by_oauth_account("service1", "foo")
111
112 async def test_existing_user(
113 self, user_manager_oauth: UserManagerMock[UserModel], user_oauth: UserOAuthModel
114 ):
115 oauth_account = user_oauth.oauth_accounts[0]
116 retrieved_user = await user_manager_oauth.get_by_oauth_account(
117 oauth_account.oauth_name, oauth_account.account_id
118 )
119 assert retrieved_user.id == user_oauth.id
120
121
122@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 1

get_by_oauth_accountMethod · 0.45

Tested by

no test coverage detected