mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
Fix test for convert_trades_to_ohlcv
This commit is contained in:
@@ -542,7 +542,9 @@ def test_convert_trades_to_ohlcv(testdatadir, tmp_path, caplog):
|
||||
|
||||
convert_trades_to_ohlcv([pair], timeframes=['1m', '5m'],
|
||||
data_format_trades='jsongz',
|
||||
datadir=tmp_path, timerange=tr, erase=True)
|
||||
datadir=tmp_path, timerange=tr, erase=True,
|
||||
data_format_ohlcv='feather',
|
||||
candle_type=CandleType.SPOT)
|
||||
|
||||
assert log_has("Deleting existing data for pair XRP/ETH, interval 1m.", caplog)
|
||||
# Load new data
|
||||
@@ -556,5 +558,7 @@ def test_convert_trades_to_ohlcv(testdatadir, tmp_path, caplog):
|
||||
|
||||
convert_trades_to_ohlcv(['NoDatapair'], timeframes=['1m', '5m'],
|
||||
data_format_trades='jsongz',
|
||||
datadir=tmp_path, timerange=tr, erase=True)
|
||||
datadir=tmp_path, timerange=tr, erase=True,
|
||||
data_format_ohlcv='feather',
|
||||
candle_type=CandleType.SPOT)
|
||||
assert log_has(msg, caplog)
|
||||
|
||||
Reference in New Issue
Block a user