Update converter test

This commit is contained in:
Matthias
2023-07-09 15:31:48 +02:00
parent 448f02960f
commit b4957a2e37
2 changed files with 4 additions and 3 deletions

View File

@@ -89,7 +89,8 @@ def start_convert_data(args: Dict[str, Any], ohlcv: bool = True) -> None:
if ohlcv:
migrate_binance_futures_data(config)
convert_ohlcv_format(config,
convert_from=args['format_from'], convert_to=args['format_to'],
convert_from=args['format_from'],
convert_to=args['format_to'],
erase=args['erase'])
else:
convert_trades_format(config,

View File

@@ -315,6 +315,8 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand
files_new.append(file_new)
default_conf['datadir'] = tmpdir1
default_conf['candle_types'] = [candletype]
if candletype == CandleType.SPOT:
default_conf['pairs'] = ['XRP/ETH', 'XRP/USDT', 'UNITTEST/USDT']
else:
@@ -328,7 +330,6 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand
convert_from='json',
convert_to='jsongz',
erase=False,
candle_type=candletype
)
for file in (files_temp + files_new):
assert file.exists()
@@ -342,7 +343,6 @@ def test_convert_ohlcv_format(default_conf, testdatadir, tmpdir, file_base, cand
convert_from='jsongz',
convert_to='json',
erase=True,
candle_type=candletype
)
for file in (files_temp):
assert file.exists()