fix test which resets singleton without reinstating it

This commit is contained in:
Matthias Voppichler 2018-05-13 20:03:54 +02:00
parent 3246c60472
commit 790f35a5c8

View File

@ -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