mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
make a fake pair_dict instead of MagicMocking it
This commit is contained in:
parent
355fde3bca
commit
c2c97d9f78
|
@ -432,10 +432,12 @@ def test_plot_feature_importance(mocker, freqai_conf):
|
|||
freqai = strategy.freqai
|
||||
freqai.live = True
|
||||
freqai.dk = FreqaiDataKitchen(freqai_conf)
|
||||
freqai.dk.live = True
|
||||
timerange = TimeRange.parse_timerange("20180110-20180130")
|
||||
freqai.dd.load_all_pair_histories(timerange, freqai.dk)
|
||||
|
||||
freqai.dd.pair_dict = MagicMock()
|
||||
freqai.dd.pair_dict = {"ADA/BTC": {"model_filename": "fake_name",
|
||||
"trained_timestamp": 1, "data_path": "", "extras": {}}}
|
||||
|
||||
data_load_timerange = TimeRange.parse_timerange("20180110-20180130")
|
||||
new_timerange = TimeRange.parse_timerange("20180120-20180130")
|
||||
|
|
Loading…
Reference in New Issue
Block a user