Fixed pytest asyncio usage, pinned working version

api-breakage
Morty Space 4 years ago
parent a92b1d69a2
commit e64e4ecfea
  1. 4
      README.md
  2. 2
      setup.py
  3. 3
      tests/conftest.py

@ -30,8 +30,8 @@ Exchange original API docs: [https://exchange-docs.crypto.com](https://exchange-
### Changelog ### Changelog
- **0.10.2** - fixed huge memory leak by `httpx` - **0.10.2** - fixed huge memory leak by `httpx`
- **0.10.1** - added read timeouts for websockets, fixed test with tickers - [leaks memory] **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.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.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.4** - fixed spread func, fixed missing params
- **0.9.3** - added RPS limiter by @Irishery - **0.9.3** - added RPS limiter by @Irishery

@ -48,7 +48,7 @@ setup(
'pylint', 'pylint',
'pycodestyle', 'pycodestyle',
'pytest', 'pytest',
'pytest-asyncio', 'pytest-asyncio==0.16.0',
'pytest-cov', 'pytest-cov',
'pytest-env', 'pytest-env',
'pytest-doctestplus', 'pytest-doctestplus',

@ -1,5 +1,5 @@
import pytest
import asyncio import asyncio
import pytest
import cryptocom.exchange as cro import cryptocom.exchange as cro
@ -12,7 +12,6 @@ async def exchange() -> cro.Exchange:
@pytest.fixture @pytest.fixture
@pytest.mark.asyncio
async def account() -> cro.Account: async def account() -> cro.Account:
acc = cro.Account(from_env=True) acc = cro.Account(from_env=True)
await acc.sync_pairs() await acc.sync_pairs()

Loading…
Cancel
Save