Fix flake8
This commit is contained in:
@@ -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()
|
||||
|
||||
|
@@ -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'})
|
||||
|
Reference in New Issue
Block a user