From 790f35a5c86004b9efb0f1e19e9d671c151d6c69 Mon Sep 17 00:00:00 2001 From: Matthias Voppichler Date: Sun, 13 May 2018 20:03:54 +0200 Subject: [PATCH] fix test which resets singleton without reinstating it --- freqtrade/tests/test_fiat_convert.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/tests/test_fiat_convert.py b/freqtrade/tests/test_fiat_convert.py index 2305b27b1..0e288bdf9 100644 --- a/freqtrade/tests/test_fiat_convert.py +++ b/freqtrade/tests/test_fiat_convert.py @@ -128,7 +128,9 @@ def test_fiat_convert_without_network(): fiat_convert = CryptoToFiatConverter() + cmc_temp = CryptoToFiatConverter._coinmarketcap CryptoToFiatConverter._coinmarketcap = None assert fiat_convert._coinmarketcap is None assert fiat_convert._find_price(crypto_symbol='BTC', fiat_symbol='USD') == 0.0 + CryptoToFiatConverter._coinmarketcap = cmc_temp