Add 5m futures testdata to support detail-backtest tests
This commit is contained in:
parent
dbddc4c8aa
commit
6e22607387
@ -1450,9 +1450,9 @@ def test_start_list_data(testdatadir, capsys):
|
|||||||
start_list_data(pargs)
|
start_list_data(pargs)
|
||||||
captured = capsys.readouterr()
|
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| 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
|
assert "\n| XRP/USDT:USDT | 1h, 8h | mark |\n" in captured.out
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
@ -105,6 +105,7 @@ def test_datahandler_ohlcv_get_available_data(testdatadir):
|
|||||||
# Convert to set to avoid failures due to sorting
|
# Convert to set to avoid failures due to sorting
|
||||||
assert set(paircombs) == {
|
assert set(paircombs) == {
|
||||||
('UNITTEST/USDT:USDT', '1h', 'mark'),
|
('UNITTEST/USDT:USDT', '1h', 'mark'),
|
||||||
|
('XRP/USDT:USDT', '5m', 'futures'),
|
||||||
('XRP/USDT:USDT', '1h', 'futures'),
|
('XRP/USDT:USDT', '1h', 'futures'),
|
||||||
('XRP/USDT:USDT', '1h', 'mark'),
|
('XRP/USDT:USDT', '1h', 'mark'),
|
||||||
('XRP/USDT:USDT', '8h', 'mark'),
|
('XRP/USDT:USDT', '8h', 'mark'),
|
||||||
|
1
tests/testdata/futures/XRP_USDT_USDT-5m-futures.json
vendored
Normal file
1
tests/testdata/futures/XRP_USDT_USDT-5m-futures.json
vendored
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user