From 93051f4f9773cb506392403c046363747d4b623e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 28 Aug 2025 19:21:54 +0200 Subject: [PATCH] test: update test for dynamic pairlist expansion in list-data --- tests/commands/test_commands.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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 = [