diff --git a/tests/data/test_converter.py b/tests/data/test_converter.py index 4186708ab..d5d527327 100644 --- a/tests/data/test_converter.py +++ b/tests/data/test_converter.py @@ -132,6 +132,16 @@ def test_ohlcv_fill_up_missing_data2(caplog): f"{len(data)} - after: {len(data2)}.*", caplog) +@pytest.mark.parametrize('timeframe', ['1m', '5m', '15m', '1h', '1d', '1M']) +def test_ohlcv_to_dataframe_multi(timeframe): + data = generate_test_data(timeframe, 40) + assert len(data) == 40 + df = ohlcv_to_dataframe(data, timeframe, 'UNITTEST/USDT') + assert len(df) == len(data) - 1 + df = ohlcv_to_dataframe(data, timeframe, 'UNITTEST/USDT', drop_incomplete=False) + assert len(df) == len(data) + + def test_ohlcv_to_dataframe_1M(): # Monthly ticks from 2019-09-01 to 2023-07-01