Remove hardcoded exchange while backtesting

This commit is contained in:
enenn
2018-03-11 21:26:53 +01:00
parent 685ee42fbc
commit 251c86197a
2 changed files with 5 additions and 4 deletions

View File

@@ -162,6 +162,8 @@ def test_backtest_start(default_conf, mocker, caplog):
mocker.patch('freqtrade.misc.load_config', new=lambda s: default_conf)
mocker.patch.multiple('freqtrade.optimize',
load_data=mocked_load_data)
# patch validate_pairs to do nothing since UNITTEST/BTC pair doesn't exist
mocker.patch('freqtrade.exchange.validate_pairs', new=lambda s: None)
args = MagicMock()
args.ticker_interval = '1m'
args.level = 10