Enhance hyperoptable strategy to test instance parameters

This commit is contained in:
Matthias
2022-05-30 07:08:37 +02:00
parent eaa656f859
commit 5bf021be2e
3 changed files with 7 additions and 3 deletions

View File

@@ -893,7 +893,7 @@ def test_auto_hyperopt_interface(default_conf):
default_conf.update({'strategy': 'HyperoptableStrategy'})
PairLocks.timeframe = default_conf['timeframe']
strategy = StrategyResolver.load_strategy(default_conf)
strategy.ft_bot_start()
with pytest.raises(OperationalException):
next(strategy.enumerate_parameters('deadBeef'))