Fix flake8

This commit is contained in:
Gerald Lonlas
2018-01-17 21:50:12 -08:00
parent dfd61bbf1d
commit be75522507
4 changed files with 4 additions and 1 deletions

View File

@@ -14,6 +14,7 @@ def result():
def test_default_strategy_class_name():
assert class_name == DefaultStrategy.__name__
def test_default_strategy_structure():
assert hasattr(DefaultStrategy, 'minimal_roi')
assert hasattr(DefaultStrategy, 'stoploss')
@@ -23,6 +24,7 @@ def test_default_strategy_structure():
assert hasattr(DefaultStrategy, 'hyperopt_space')
assert hasattr(DefaultStrategy, 'buy_strategy_generator')
def test_default_strategy(result):
strategy = DefaultStrategy()

View File

@@ -120,6 +120,7 @@ def test_strategy_fallback_default_strategy():
strategy._load_strategy('../../super_duper')
assert not hasattr(Strategy, 'custom_strategy')
def test_strategy_singleton():
strategy1 = Strategy()
strategy1.init({'strategy': 'default_strategy'})