add tests for IntParameter.range

This commit is contained in:
Matthias
2021-04-24 07:18:35 +02:00
parent 90476c4287
commit 5c7f278c8a
3 changed files with 19 additions and 0 deletions

View File

@@ -6,6 +6,7 @@ import pandas as pd
import pytest
from freqtrade.optimize.hyperopt import Hyperopt
from freqtrade.state import RunMode
from freqtrade.strategy.interface import SellType
from tests.conftest import patch_exchange
@@ -15,6 +16,7 @@ def hyperopt_conf(default_conf):
hyperconf = deepcopy(default_conf)
hyperconf.update({
'datadir': Path(default_conf['datadir']),
'runmode': RunMode.HYPEROPT,
'hyperopt': 'DefaultHyperOpt',
'hyperopt_loss': 'ShortTradeDurHyperOptLoss',
'hyperopt_path': str(Path(__file__).parent / 'hyperopts'),