Fail in case of name and explicit space name collisions

This commit is contained in:
Matthias
2021-04-05 10:53:00 +02:00
parent 30e5e92968
commit dc406fe19f
3 changed files with 9 additions and 2 deletions

View File

@@ -617,3 +617,8 @@ def test_auto_hyperopt_interface(default_conf):
# Parameter is disabled - so value from sell_param dict will NOT be used.
assert strategy.sell_minusdi.value == 0.5
strategy.sell_rsi = IntParameter([0, 10], default=5, space='buy')
with pytest.raises(OperationalException, match=r"Inconclusive parameter.*"):
[x for x in strategy.enumerate_parameters('sell')]