rename --timeperiod to --timerange
This commit is contained in:
@@ -159,7 +159,7 @@ def test_backtest_start(default_conf, mocker, caplog):
|
||||
args.level = 10
|
||||
args.live = False
|
||||
args.datadir = None
|
||||
args.timeperiod = None # needed due to MagicMock malleability
|
||||
args.timerange = None # needed due to MagicMock malleability
|
||||
backtesting.start(args)
|
||||
# check the logs, that will contain the backtest result
|
||||
exists = ['Using max_open_trades: 1 ...',
|
||||
|
@@ -179,5 +179,5 @@ def test_load_tickerdata_file():
|
||||
def test_tickerdata_to_dataframe():
|
||||
tick = load_tickerdata_file(None, 'BTC_UNITEST', 1)
|
||||
tickerlist = {'BTC_UNITEST': tick}
|
||||
data = optimize.tickerdata_to_dataframe(tickerlist, timeperiod=-100)
|
||||
data = optimize.tickerdata_to_dataframe(tickerlist, timerange=-100)
|
||||
assert 100 == len(data['BTC_UNITEST'])
|
||||
|
Reference in New Issue
Block a user