Adjust ohlcv test after rebase

This commit is contained in:
Matthias 2020-12-23 15:50:24 +01:00
parent b39de171c8
commit 5599490aa2

View File

@ -115,7 +115,8 @@ class TestCCXTExchange():
timeframe = EXCHANGES[exchangename]['timeframe'] timeframe = EXCHANGES[exchangename]['timeframe']
pair_tf = (pair, timeframe) pair_tf = (pair, timeframe)
ohlcv = exchange.refresh_latest_ohlcv([pair_tf]) ohlcv = exchange.refresh_latest_ohlcv([pair_tf])
assert isinstance(ohlcv, list) assert isinstance(ohlcv, dict)
assert len(ohlcv[pair_tf]) == len(exchange.klines(pair_tf))
assert len(exchange.klines(pair_tf)) > 200 assert len(exchange.klines(pair_tf)) > 200
# TODO: tests fetch_trades (?) # TODO: tests fetch_trades (?)