From 157f7da8cebf65da9a36763902910d717d62e977 Mon Sep 17 00:00:00 2001 From: gcarq Date: Sun, 25 Mar 2018 16:30:49 +0200 Subject: [PATCH] remove obsolete assertions --- freqtrade/tests/strategy/test_strategy.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/freqtrade/tests/strategy/test_strategy.py b/freqtrade/tests/strategy/test_strategy.py index 0f45d8d04..244910790 100644 --- a/freqtrade/tests/strategy/test_strategy.py +++ b/freqtrade/tests/strategy/test_strategy.py @@ -21,29 +21,19 @@ def test_search_strategy(): def test_load_strategy(result): resolver = StrategyResolver() - - assert not hasattr(StrategyResolver, 'custom_strategy') resolver._load_strategy('TestStrategy') - - assert not hasattr(StrategyResolver, 'custom_strategy') - assert hasattr(resolver.strategy, 'populate_indicators') assert 'adx' in resolver.strategy.populate_indicators(result) def test_load_strategy_custom_directory(result): resolver = StrategyResolver() - - assert not hasattr(StrategyResolver, 'custom_strategy') - extra_dir = os.path.join('some', 'path') with pytest.raises( FileNotFoundError, match=r".*No such file or directory: '{}'".format(extra_dir)): resolver._load_strategy('TestStrategy', extra_dir) - assert not hasattr(StrategyResolver, 'custom_strategy') - assert hasattr(resolver.strategy, 'populate_indicators') assert 'adx' in resolver.strategy.populate_indicators(result)