diff --git a/README.md b/README.md index df3ee5f..83b362e 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Exchange original API docs: [https://exchange-docs.crypto.com](https://exchange- ### Changelog - **0.10.2** - fixed huge memory leak by `httpx` -- **0.10.1** - added read timeouts for websockets, fixed test with tickers -- **0.10.0** - moved into httpx + websockets, added autoreconnect, simplified code, improved stability +- [leaks memory] **0.10.1** - added read timeouts for websockets, fixed test with tickers +- [leaks memory] **0.10.0** - moved into httpx + websockets, added autoreconnect, simplified code, improved stability - **0.9.5** - added timeout for websocket if no data received in 3 mins we trying to reconnect - **0.9.4** - fixed spread func, fixed missing params - **0.9.3** - added RPS limiter by @Irishery diff --git a/setup.py b/setup.py index 06d4da0..926e32b 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ setup( 'pylint', 'pycodestyle', 'pytest', - 'pytest-asyncio', + 'pytest-asyncio==0.16.0', 'pytest-cov', 'pytest-env', 'pytest-doctestplus', diff --git a/tests/conftest.py b/tests/conftest.py index 2add87d..8116e39 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,5 +1,5 @@ -import pytest import asyncio +import pytest import cryptocom.exchange as cro @@ -12,7 +12,6 @@ async def exchange() -> cro.Exchange: @pytest.fixture -@pytest.mark.asyncio async def account() -> cro.Account: acc = cro.Account(from_env=True) await acc.sync_pairs() @@ -20,7 +19,7 @@ async def account() -> cro.Account: await acc.cancel_open_orders(cro.pairs.CRO_USDT) -@pytest.fixture +@pytest.fixture def event_loop(request): """Create an instance of the default event loop for each test case.""" loop = asyncio.events.new_event_loop()