chore: fix

This commit is contained in:
Matthias
2025-08-30 19:56:25 +02:00
parent 61a1ed897f
commit 321b44b779

View File

@@ -1831,6 +1831,39 @@ def test_start_list_trades_data(testdatadir, capsys):
captured.out,
)
args = [
"list-data",
"--datadir",
str(testdatadir),
"--trades",
"--pairs",
"XRP/ETH",
]
pargs = get_args(args)
pargs["config"] = None
start_list_data(pargs)
captured = capsys.readouterr()
assert "Found trades data for 1 pair." in captured.out
assert re.search(r".*Pair.*Type.*\n", captured.out)
assert re.search(
r"\n.* XRP/ETH .* spot .* 2019-10-11 00:00:01 .* 2019-10-13 11:19:28 .* 12477 .*|\n",
captured.out,
)
args = [
"list-data",
"--datadir",
str(testdatadir),
"--trades",
"--pairs",
"NO/PAIR",
]
pargs = get_args(args)
pargs["config"] = None
start_list_data(pargs)
captured = capsys.readouterr()
assert "Found trades data for 0 pairs." in captured.out
args = [
"list-data",
"--datadir",