fix test which resets singleton without reinstating it
This commit is contained in:
parent
3246c60472
commit
790f35a5c8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user