Skip to content

Commit c89b7a9

Browse files
committed
Fix errors
1 parent 46c37bf commit c89b7a9

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

tests/fixtures/tokens.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from pathlib import Path
33

44
import pytest
5-
65
from huntflow_api_client.tokens.locker import AsyncioLockLocker
76
from huntflow_api_client.tokens.proxy import HuntflowTokenProxy
87
from huntflow_api_client.tokens.storage import HuntflowTokenFileStorage
@@ -24,7 +23,7 @@ def token_storage(token_filename: str, token_pair: TokenPair) -> HuntflowTokenFi
2423
return new_token_storage(token_filename, token_pair)
2524

2625

27-
@pytest.fixture(scope="function")
28-
def token_proxy(token_storage: HuntflowTokenFileStorage) -> HuntflowTokenProxy:
26+
@pytest.fixture
27+
async def token_proxy(token_storage: HuntflowTokenFileStorage) -> HuntflowTokenProxy:
2928
locker = AsyncioLockLocker()
30-
return HuntflowTokenProxy(locker=locker, storage=token_storage)
29+
yield HuntflowTokenProxy(locker=locker, storage=token_storage)

0 commit comments

Comments
 (0)