(
user: UserModel, oauth_account1: OAuthAccountModel
)
| 9 | @pytest.mark.asyncio |
| 10 | @pytest.mark.db |
| 11 | async 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, {}) |
nothing calls this directly
no test coverage detected
searching dependent graphs…