From 2d39759d342eaaca3476ef5943f190953aa5337f Mon Sep 17 00:00:00 2001 From: Samuel Husso Date: Sat, 6 Jan 2018 10:08:25 +0200 Subject: [PATCH] pep8 fix --- freqtrade/tests/test_analyze.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/tests/test_analyze.py b/freqtrade/tests/test_analyze.py index b726474c8..040c45f26 100644 --- a/freqtrade/tests/test_analyze.py +++ b/freqtrade/tests/test_analyze.py @@ -9,6 +9,7 @@ from pandas import DataFrame from freqtrade.analyze import parse_ticker_dataframe, populate_buy_trend, populate_indicators, \ get_signal, SignalType, populate_sell_trend + @pytest.fixture def result(): with open('freqtrade/tests/testdata/BTC_ETH-1.json') as data_file: @@ -63,6 +64,7 @@ def test_returns_latest_sell_signal(mocker): ) assert not get_signal('BTC-ETH', SignalType.SELL) + def test_get_signal_handles_exceptions(mocker): mocker.patch('freqtrade.analyze.get_ticker_history', return_value=MagicMock()) mocker.patch('freqtrade.analyze.analyze_ticker',