MOre tests for ParameterHyperopt

This commit is contained in:
Matthias
2021-03-29 19:27:19 +02:00
parent 929f329607
commit 6954a1e029
3 changed files with 21 additions and 1 deletions

View File

@@ -587,7 +587,8 @@ def test_hyperopt_parameters():
assert isinstance(fltpar.get_space(''), Real)
assert fltpar.value == 1
catpar = CategoricalParameter(['buy_rsi', 'buy_macd', 'buy_none'], default='buy_macd', space='buy')
catpar = CategoricalParameter(['buy_rsi', 'buy_macd', 'buy_none'],
default='buy_macd', space='buy')
assert isinstance(catpar.get_space(''), Categorical)
assert catpar.value == 'buy_macd'