Fix wrong hyperoptlosstest
This commit is contained in:
parent
776ce57f55
commit
29ce323649
@ -20,7 +20,7 @@ def test_hyperoptlossresolver(mocker, default_conf) -> None:
|
|||||||
hl = ShortTradeDurHyperOptLoss
|
hl = ShortTradeDurHyperOptLoss
|
||||||
mocker.patch(
|
mocker.patch(
|
||||||
'freqtrade.resolvers.hyperopt_resolver.HyperOptLossResolver.load_object',
|
'freqtrade.resolvers.hyperopt_resolver.HyperOptLossResolver.load_object',
|
||||||
MagicMock(return_value=hl)
|
MagicMock(return_value=hl())
|
||||||
)
|
)
|
||||||
default_conf.update({'hyperopt_loss': 'SharpeHyperOptLossDaily'})
|
default_conf.update({'hyperopt_loss': 'SharpeHyperOptLossDaily'})
|
||||||
x = HyperOptLossResolver.load_hyperoptloss(default_conf)
|
x = HyperOptLossResolver.load_hyperoptloss(default_conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user