mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-02 10:03:05 +00:00
test: update test for dynamic pairlist expansion in list-data
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user