From 6d4f68fcdbeb8cbbde0cdb824762eb76b718c283 Mon Sep 17 00:00:00 2001 From: misagh Date: Fri, 5 Oct 2018 17:25:56 +0200 Subject: [PATCH] unnecessary variables removed --- freqtrade/tests/edge/test_edge.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/freqtrade/tests/edge/test_edge.py b/freqtrade/tests/edge/test_edge.py index 8ddadeb58..7d750cc31 100644 --- a/freqtrade/tests/edge/test_edge.py +++ b/freqtrade/tests/edge/test_edge.py @@ -1,6 +1,5 @@ from freqtrade.tests.conftest import get_patched_exchange from freqtrade.edge import Edge -from freqtrade import optimize from pandas import DataFrame, to_datetime import arrow import numpy as np @@ -56,7 +55,6 @@ def test_stoploss(mocker, default_conf): ] )) - pairs = ['A/B', 'C/D', 'E/F', 'G/H'] assert edge.stoploss('E/F') == -0.01 @@ -101,7 +99,7 @@ def test_edge_heartbeat_calculate(mocker, default_conf): # should not recalculate if heartbeat not reached edge._last_updated = arrow.utcnow().timestamp - heartbeat + 1 - assert edge.calculate() == False + assert edge.calculate() is False def mocked_load_data(datadir, pairs=[], ticker_interval='0m', refresh_pairs=False,