diff --git a/freqtrade/tests/exchange/test_exchange.py b/freqtrade/tests/exchange/test_exchange.py index e7914466e..e9a7f8aa5 100644 --- a/freqtrade/tests/exchange/test_exchange.py +++ b/freqtrade/tests/exchange/test_exchange.py @@ -166,6 +166,7 @@ def test_get_ticker(mocker, ticker): api_mock.get_ticker = MagicMock(return_value=tick) mocker.patch('freqtrade.exchange.bittrex._API', api_mock) + # retrieve original ticker ticker = get_ticker(pair='BTC_ETH') assert ticker['bid'] == 0.00001098 assert ticker['ask'] == 0.00001099 @@ -181,6 +182,7 @@ def test_get_ticker(mocker, ticker): assert ticker['bid'] == 0.00001098 assert ticker['ask'] == 0.00001099 + # force ticker refresh ticker = get_ticker(pair='BTC_ETH', refresh=True) assert ticker['bid'] == 0.5 assert ticker['ask'] == 1