Skip to content

Commit c92d984

Browse files
committed
codestyle
1 parent c89b7a9 commit c92d984

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/fixtures/tokens.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import uuid
22
from pathlib import Path
3+
from typing import AsyncGenerator
34

45
import pytest
6+
57
from huntflow_api_client.tokens.locker import AsyncioLockLocker
68
from huntflow_api_client.tokens.proxy import HuntflowTokenProxy
79
from huntflow_api_client.tokens.storage import HuntflowTokenFileStorage
@@ -24,6 +26,8 @@ def token_storage(token_filename: str, token_pair: TokenPair) -> HuntflowTokenFi
2426

2527

2628
@pytest.fixture
27-
async def token_proxy(token_storage: HuntflowTokenFileStorage) -> HuntflowTokenProxy:
29+
async def token_proxy(
30+
token_storage: HuntflowTokenFileStorage,
31+
) -> AsyncGenerator[HuntflowTokenProxy, None]:
2832
locker = AsyncioLockLocker()
2933
yield HuntflowTokenProxy(locker=locker, storage=token_storage)

0 commit comments

Comments
 (0)