Fix bug in property overwriting prevention

This commit is contained in:
Matthias
2021-08-04 20:10:32 +02:00
parent 3c41223333
commit b73768acd1
3 changed files with 3 additions and 3 deletions

View File

@@ -1004,7 +1004,7 @@ def test_in_strategy_auto_hyperopt(mocker, hyperopt_conf, tmpdir, fee) -> None:
'strategy': 'HyperoptableStrategy',
'user_data_dir': Path(tmpdir),
'hyperopt_random_state': 42,
'spaces': ['buy', 'sell', 'protection']
'spaces': ['all']
})
hyperopt = Hyperopt(hyperopt_conf)
assert isinstance(hyperopt.custom_hyperopt, HyperOptAuto)

View File

@@ -734,7 +734,7 @@ def test_auto_hyperopt_interface(default_conf):
assert isinstance(all_params, dict)
assert len(all_params['buy']) == 2
assert len(all_params['sell']) == 2
assert all_params['count'] == 4
assert all_params['count'] == 5
strategy.__class__.sell_rsi = IntParameter([0, 10], default=5, space='buy')