Skip to content

Commit 93051f4

Browse files
committed
test: update test for dynamic pairlist expansion in list-data
1 parent e3ffe56 commit 93051f4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

tests/commands/test_commands.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1776,6 +1776,27 @@ def test_start_list_data(testdatadir, capsys):
17761776
captured.out,
17771777
)
17781778

1779+
# Test with regex
1780+
args = [
1781+
"list-data",
1782+
"--pairs",
1783+
"XMR/.*",
1784+
"--datadir",
1785+
str(testdatadir),
1786+
"--show-timerange",
1787+
]
1788+
pargs = get_args(args)
1789+
pargs["config"] = None
1790+
start_list_data(pargs)
1791+
captured = capsys.readouterr()
1792+
assert "Found 1 pair / timeframe combinations." in captured.out
1793+
assert re.search(r".*Pair.*Timeframe.*Type.*From .* To .* Candles .*\n", captured.out)
1794+
assert "UNITTEST/BTC" not in captured.out
1795+
assert re.search(
1796+
r"\n.* XMR/USDT .* 5m .* spot .* 2019-10-11 00:00:00 .* 2019-10-13 11:19:00 .* 2469 |\n",
1797+
captured.out,
1798+
)
1799+
17791800

17801801
def test_start_list_trades_data(testdatadir, capsys):
17811802
args = [

0 commit comments

Comments
 (0)