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. 5
      tests/conftest.py

@ -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

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

@ -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()

Loading…
Cancel
Save