File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff 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
17801801def test_start_list_trades_data (testdatadir , capsys ):
17811802 args = [
You can’t perform that action at this time.
0 commit comments