Fix failing test

This commit is contained in:
Matthias 2021-04-09 22:10:20 +02:00
parent 5f67400649
commit fedff1a75a

View File

@ -596,8 +596,6 @@ def test_hyperopt_parameters():
fltpar = DecimalParameter(low=0.0, high=5.5, default=1.0004, decimals=3, space='buy') fltpar = DecimalParameter(low=0.0, high=5.5, default=1.0004, decimals=3, space='buy')
assert isinstance(fltpar.get_space(''), Integer) assert isinstance(fltpar.get_space(''), Integer)
assert fltpar.value == 1 assert fltpar.value == 1
fltpar._set_value(2222)
assert fltpar.value == 2.222
catpar = CategoricalParameter(['buy_rsi', 'buy_macd', 'buy_none'], catpar = CategoricalParameter(['buy_rsi', 'buy_macd', 'buy_none'],
default='buy_macd', space='buy') default='buy_macd', space='buy')