Add tests

This commit is contained in:
Matthias
2019-12-24 15:35:38 +01:00
parent 2ab989e274
commit 27b8617077
2 changed files with 45 additions and 5 deletions

View File

@@ -30,6 +30,14 @@ def test_search_strategy():
assert s is None
def test_search_all_strategies():
directory = Path(__file__).parent
strategies = StrategyResolver.search_all_objects(directory)
assert isinstance(strategies, list)
assert len(strategies) == 3
assert isinstance(strategies[0], dict)
def test_load_strategy(default_conf, result):
default_conf.update({'strategy': 'SampleStrategy',
'strategy_path': str(Path(__file__).parents[2] / 'freqtrade/templates')