Adjust tests to data.history

This commit is contained in:
Matthias
2018-12-13 06:35:28 +01:00
parent 4ca6aad99a
commit 92c800d925
5 changed files with 19 additions and 18 deletions

View File

@@ -288,7 +288,7 @@ def test_edge_process_downloaded_data(mocker, edge_conf):
edge_conf['datadir'] = None
freqtrade = get_patched_freqtradebot(mocker, edge_conf)
mocker.patch('freqtrade.exchange.Exchange.get_fee', MagicMock(return_value=0.001))
mocker.patch('freqtrade.optimize.load_data', mocked_load_data)
mocker.patch('freqtrade.data.history.load_data', mocked_load_data)
edge = Edge(edge_conf, freqtrade.exchange, freqtrade.strategy)
assert edge.calculate()