Eliminate asyncio warnings in tests

This commit is contained in:
hroff-1902
2019-09-10 13:45:30 +03:00
parent f987e6e0f9
commit 869a5b4901
4 changed files with 40 additions and 24 deletions

View File

@@ -26,7 +26,8 @@ def prec_satoshi(a, b) -> float:
# Unit tests
def test_rpc_trade_status(default_conf, ticker, fee, markets, mocker) -> None:
@pytest.mark.asyncio
async def test_rpc_trade_status(default_conf, ticker, fee, markets, mocker) -> None:
mocker.patch('freqtrade.rpc.telegram.Telegram', MagicMock())
mocker.patch.multiple(
'freqtrade.exchange.Exchange',