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

@ -152,6 +152,7 @@ def format_results(results: DataFrame):
results.duration.mean() * 5,
)
def start(args):
global TOTAL_TRIES, PROCESSED, TRIALS, _CURRENT_TRIES

View File

@ -27,7 +27,6 @@ class DefaultStrategy(IStrategy):
# Optimal stoploss designed for the strategy
stoploss = -0.10
def populate_indicators(self, dataframe: DataFrame) -> DataFrame:
"""
Adds several different TA indicators to the given DataFrame

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'})