just pass stake_amount instead of the whole config

This commit is contained in:
Janne Sinivirta
2017-12-23 17:26:22 +02:00
parent 24bc3a8390
commit 1058820e1b
3 changed files with 7 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ def test_backtest(default_conf, mocker):
exchange._API = Bittrex({'key': '', 'secret': ''})
data = optimize.load_data(ticker_interval=5, pairs=['BTC_ETH'])
results = backtest(default_conf, optimize.preprocess(data), 10, True)
results = backtest(default_conf['stake_amount'], optimize.preprocess(data), 10, True)
num_results = len(results)
assert num_results > 0
@@ -23,7 +23,7 @@ def test_1min_ticker_interval(default_conf, mocker):
# Run a backtesting for an exiting 5min ticker_interval
data = optimize.load_data(ticker_interval=1, pairs=['BTC_UNITEST'])
results = backtest(default_conf, optimize.preprocess(data), 1, True)
results = backtest(default_conf['stake_amount'], optimize.preprocess(data), 1, True)
assert len(results) > 0