Change ticker_interval from integer to string (1m, 5m, 1d, ...)
This commit is contained in:
@@ -113,7 +113,7 @@ def test_parse_args_backtesting_custom():
|
||||
'-c', 'test_conf.json',
|
||||
'backtesting',
|
||||
'--live',
|
||||
'--ticker-interval', '1',
|
||||
'--ticker-interval', '1m',
|
||||
'--refresh-pairs-cached']
|
||||
call_args = parse_args(args, '')
|
||||
assert call_args.config == 'test_conf.json'
|
||||
@@ -121,7 +121,7 @@ def test_parse_args_backtesting_custom():
|
||||
assert call_args.loglevel == 20
|
||||
assert call_args.subparser == 'backtesting'
|
||||
assert call_args.func is not None
|
||||
assert call_args.ticker_interval == 1
|
||||
assert call_args.ticker_interval == '1m'
|
||||
assert call_args.refresh_pairs is True
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user