Add 5m futures testdata to support detail-backtest tests

This commit is contained in:
Matthias 2023-01-20 07:08:38 +00:00
parent dbddc4c8aa
commit 6e22607387
3 changed files with 4 additions and 2 deletions

View File

@ -1450,9 +1450,9 @@ def test_start_list_data(testdatadir, capsys):
start_list_data(pargs)
captured = capsys.readouterr()
assert "Found 5 pair / timeframe combinations." in captured.out
assert "Found 6 pair / timeframe combinations." in captured.out
assert "\n| Pair | Timeframe | Type |\n" in captured.out
assert "\n| XRP/USDT:USDT | 1h | futures |\n" in captured.out
assert "\n| XRP/USDT:USDT | 5m, 1h | futures |\n" in captured.out
assert "\n| XRP/USDT:USDT | 1h, 8h | mark |\n" in captured.out
args = [

View File

@ -105,6 +105,7 @@ def test_datahandler_ohlcv_get_available_data(testdatadir):
# Convert to set to avoid failures due to sorting
assert set(paircombs) == {
('UNITTEST/USDT:USDT', '1h', 'mark'),
('XRP/USDT:USDT', '5m', 'futures'),
('XRP/USDT:USDT', '1h', 'futures'),
('XRP/USDT:USDT', '1h', 'mark'),
('XRP/USDT:USDT', '8h', 'mark'),

File diff suppressed because one or more lines are too long