From 138c8152c20831f836f1a82c759ec86ce49cb27f Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 10 Oct 2018 22:03:54 +0200 Subject: [PATCH] remove unused import --- freqtrade/tests/rpc/test_rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/tests/rpc/test_rpc.py b/freqtrade/tests/rpc/test_rpc.py index 14320cd54..b181231c8 100644 --- a/freqtrade/tests/rpc/test_rpc.py +++ b/freqtrade/tests/rpc/test_rpc.py @@ -5,7 +5,7 @@ from datetime import datetime from unittest.mock import MagicMock, ANY import pytest -from numpy import NAN, isnan +from numpy import isnan from freqtrade import TemporaryError, DependencyException from freqtrade.fiat_convert import CryptoToFiatConverter @@ -253,6 +253,7 @@ def test_rpc_trade_statistics(default_conf, ticker, ticker_sell_up, fee, assert prec_satoshi(stats['best_rate'], 6.2) assert isnan(stats['profit_all_coin']) + # Test that rpc_trade_statistics can handle trades that lacks # trade.open_rate (it is set to None) def test_rpc_trade_statistics_closed(mocker, default_conf, ticker, fee, markets,