diff --git a/tests/commands/test_commands.py b/tests/commands/test_commands.py index 2dde29c0d..f4625663a 100644 --- a/tests/commands/test_commands.py +++ b/tests/commands/test_commands.py @@ -1776,6 +1776,27 @@ def test_start_list_data(testdatadir, capsys): captured.out, ) + # Test with regex + args = [ + "list-data", + "--pairs", + "XMR/.*", + "--datadir", + str(testdatadir), + "--show-timerange", + ] + pargs = get_args(args) + pargs["config"] = None + start_list_data(pargs) + captured = capsys.readouterr() + assert "Found 1 pair / timeframe combinations." in captured.out + assert re.search(r".*Pair.*Timeframe.*Type.*From .* To .* Candles .*\n", captured.out) + assert "UNITTEST/BTC" not in captured.out + assert re.search( + r"\n.* XMR/USDT .* 5m .* spot .* 2019-10-11 00:00:00 .* 2019-10-13 11:19:00 .* 2469 |\n", + captured.out, + ) + def test_start_list_trades_data(testdatadir, capsys): args = [