Skip to content

Commit

Permalink
Small stylistic fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Nov 21, 2019
1 parent 084efc9 commit 471bd4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions freqtrade/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
'sample_hyperopt_advanced.py': 'hyperopts',
'sample_hyperopt_loss.py': 'hyperopts',
'sample_hyperopt.py': 'hyperopts',
'strategy_analysis_example.ipynb': 'notebooks',
}

TIMEFRAMES = [
Expand Down
4 changes: 1 addition & 3 deletions freqtrade/templates/sample_hyperopt_advanced.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# pragma pylint: disable=missing-docstring, invalid-name, pointless-string-statement

from functools import reduce
from math import exp
from typing import Any, Callable, Dict, List
from datetime import datetime

import numpy as np# noqa F401
import numpy as np # noqa F401
import talib.abstract as ta
from pandas import DataFrame
from skopt.space import Categorical, Dimension, Integer, Real
Expand Down
3 changes: 2 additions & 1 deletion tests/test_directory_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,12 @@ def test_copy_sample_files(mocker, default_conf, caplog) -> None:
copymock = mocker.patch('shutil.copy', MagicMock())

copy_sample_files(Path('/tmp/bar'))
assert copymock.call_count == 4
assert copymock.call_count == 5
assert copymock.call_args_list[0][0][1] == '/tmp/bar/strategies/sample_strategy.py'
assert copymock.call_args_list[1][0][1] == '/tmp/bar/hyperopts/sample_hyperopt_advanced.py'
assert copymock.call_args_list[2][0][1] == '/tmp/bar/hyperopts/sample_hyperopt_loss.py'
assert copymock.call_args_list[3][0][1] == '/tmp/bar/hyperopts/sample_hyperopt.py'
assert copymock.call_args_list[4][0][1] == '/tmp/bar/notebooks/strategy_analysis_example.ipynb'


def test_copy_sample_files_errors(mocker, default_conf, caplog) -> None:
Expand Down

0 comments on commit 471bd4d

Please sign in to comment.