fix flake8 warnings
This commit is contained in:
parent
a38c2121cc
commit
3cee94226f
@ -9,8 +9,12 @@ from freqtrade.strategy.resolver import StrategyResolver
|
|||||||
|
|
||||||
|
|
||||||
def test_search_strategy():
|
def test_search_strategy():
|
||||||
default_location = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', '..', 'strategy')
|
default_location = os.path.join(os.path.dirname(
|
||||||
assert isinstance(StrategyResolver._search_strategy(default_location, 'DefaultStrategy'), IStrategy)
|
os.path.realpath(__file__)), '..', '..', 'strategy'
|
||||||
|
)
|
||||||
|
assert isinstance(
|
||||||
|
StrategyResolver._search_strategy(default_location, 'DefaultStrategy'), IStrategy
|
||||||
|
)
|
||||||
assert StrategyResolver._search_strategy(default_location, 'NotFoundStrategy') is None
|
assert StrategyResolver._search_strategy(default_location, 'NotFoundStrategy') is None
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user