mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 19:30:47 +08:00
Remove list endpoint and related methods
This commit is contained in:
@ -97,12 +97,6 @@ async def test_queries(sqlalchemy_user_db: SQLAlchemyUserDatabase[UserDB]):
|
||||
assert email_user is not None
|
||||
assert email_user.id == user_db.id
|
||||
|
||||
# List
|
||||
users = await sqlalchemy_user_db.list()
|
||||
assert len(users) == 1
|
||||
first_user = users[0]
|
||||
assert first_user.id == user_db.id
|
||||
|
||||
# Exception when inserting existing email
|
||||
with pytest.raises(sqlite3.IntegrityError):
|
||||
await sqlalchemy_user_db.create(user)
|
||||
@ -193,13 +187,6 @@ async def test_queries_oauth(
|
||||
assert email_user.id == user_db.id
|
||||
assert len(email_user.oauth_accounts) == 2
|
||||
|
||||
# List
|
||||
users = await sqlalchemy_user_db_oauth.list()
|
||||
assert len(users) == 1
|
||||
first_user = users[0]
|
||||
assert first_user.id == user_db.id
|
||||
assert len(first_user.oauth_accounts) == 2
|
||||
|
||||
# Get by OAuth account
|
||||
oauth_user = await sqlalchemy_user_db_oauth.get_by_oauth_account(
|
||||
oauth_account1.oauth_name, oauth_account1.account_id
|
||||
|
Reference in New Issue
Block a user