mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-16 11:53:40 +08:00
* Replace unused `for` index with underscore * Use `items()` to directly unpack dictionary values * Merge duplicate blocks in conditional * Use `any()` instead of for loop * Format __init__.py
This commit is contained in:
@ -137,5 +137,5 @@ async def test_authenticator_none_enabled(get_test_auth_client, user):
|
||||
@pytest.mark.asyncio
|
||||
async def test_authenticators_with_same_name(get_test_auth_client):
|
||||
with pytest.raises(DuplicateBackendNamesError):
|
||||
async for client in get_test_auth_client([BackendNone(), BackendNone()]):
|
||||
async for _ in get_test_auth_client([BackendNone(), BackendNone()]):
|
||||
pass
|
||||
|
Reference in New Issue
Block a user