test: update test for dynamic pairlist expansion in list-data

This commit is contained in:
Matthias
2025-08-28 19:21:54 +02:00
parent e3ffe56549
commit 93051f4f97

View File

@@ -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 = [