Import DefaultStrategy from the correct file

This commit is contained in:
Matthias 2019-07-21 19:31:50 +02:00
parent dcddfce5bc
commit 1fea6d394a
2 changed files with 1 additions and 3 deletions

View File

@ -3,8 +3,6 @@ import sys
from copy import deepcopy
from freqtrade.strategy.interface import IStrategy
# Import Default-Strategy to have hyperopt correctly resolve
from freqtrade.strategy.default_strategy import DefaultStrategy # noqa: F401
logger = logging.getLogger(__name__)

View File

@ -45,7 +45,7 @@ def test_import_strategy(caplog):
def test_search_strategy():
default_config = {}
default_location = Path(__file__).parent.parent.joinpath('strategy').resolve()
default_location = Path(__file__).parent.parent.parent.joinpath('strategy').resolve()
s, _ = StrategyResolver._search_object(
directory=default_location,