Add tests for new behaviour

This commit is contained in:
Matthias
2019-07-03 20:07:26 +02:00
parent fcdbe846e5
commit 1bcf2737fe
4 changed files with 72 additions and 2 deletions

View File

@@ -910,7 +910,7 @@ def test_get_ticker(default_conf, mocker, exchange_name):
'last': 0.0001,
}
api_mock.fetch_ticker = MagicMock(return_value=tick)
api_mock.markets = {'ETH/BTC': {}}
api_mock.markets = {'ETH/BTC': {'active': True}}
exchange = get_patched_exchange(mocker, default_conf, api_mock, id=exchange_name)
# retrieve original ticker
ticker = exchange.get_ticker(pair='ETH/BTC')