fix small test bug
This commit is contained in:
parent
f12167f0dc
commit
18b8f20f1c
@ -38,6 +38,7 @@ def test_import_strategy(caplog):
|
|||||||
|
|
||||||
|
|
||||||
def test_search_strategy():
|
def test_search_strategy():
|
||||||
|
default_config = {}
|
||||||
default_location = path.join(path.dirname(
|
default_location = path.join(path.dirname(
|
||||||
path.realpath(__file__)), '..', '..', 'strategy'
|
path.realpath(__file__)), '..', '..', 'strategy'
|
||||||
)
|
)
|
||||||
@ -65,7 +66,7 @@ def test_load_strategy(result):
|
|||||||
def test_load_strategy_invalid_directory(result, caplog):
|
def test_load_strategy_invalid_directory(result, caplog):
|
||||||
resolver = StrategyResolver()
|
resolver = StrategyResolver()
|
||||||
extra_dir = path.join('some', 'path')
|
extra_dir = path.join('some', 'path')
|
||||||
resolver._load_strategy('TestStrategy', extra_dir)
|
resolver._load_strategy('TestStrategy', config={}, extra_dir=extra_dir)
|
||||||
|
|
||||||
assert (
|
assert (
|
||||||
'freqtrade.strategy.resolver',
|
'freqtrade.strategy.resolver',
|
||||||
|
Loading…
Reference in New Issue
Block a user