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

Function test_not_implemented_methods

tests/test_db_base.py:11–38  ·  view source on GitHub ↗
(
    user: UserModel, oauth_account1: OAuthAccountModel
)

Source from the content-addressed store, hash-verified

9@pytest.mark.asyncio
10@pytest.mark.db
11async def test_not_implemented_methods(
12 user: UserModel, oauth_account1: OAuthAccountModel
13):
14 base_user_db = BaseUserDatabase[UserModel, IDType]()
15
16 with pytest.raises(NotImplementedError):
17 await base_user_db.get(uuid.uuid4())
18
19 with pytest.raises(NotImplementedError):
20 await base_user_db.get_by_email("lancelot@camelot.bt")
21
22 with pytest.raises(NotImplementedError):
23 await base_user_db.get_by_oauth_account("google", "user_oauth1")
24
25 with pytest.raises(NotImplementedError):
26 await base_user_db.create({})
27
28 with pytest.raises(NotImplementedError):
29 await base_user_db.update(user, {})
30
31 with pytest.raises(NotImplementedError):
32 await base_user_db.delete(user)
33
34 with pytest.raises(NotImplementedError):
35 await base_user_db.add_oauth_account(user, {})
36
37 with pytest.raises(NotImplementedError):
38 await base_user_db.update_oauth_account(user, oauth_account1, {})

Callers

nothing calls this directly

Calls 8

getMethod · 0.45
get_by_emailMethod · 0.45
get_by_oauth_accountMethod · 0.45
createMethod · 0.45
updateMethod · 0.45
deleteMethod · 0.45
add_oauth_accountMethod · 0.45
update_oauth_accountMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…