Fix odd bug related to singleton usage

This commit is contained in:
Matthias
2024-05-20 13:56:28 +02:00
parent 4d2db33445
commit 0c16a45999

View File

@@ -116,12 +116,12 @@ def test_fiat_convert_without_network(mocker):
fiat_convert = CryptoToFiatConverter()
cmc_temp = CryptoToFiatConverter._coingecko
CryptoToFiatConverter._coingecko = None
cmc_temp = fiat_convert._coingecko
fiat_convert._coingecko = None
assert fiat_convert._coingecko is None
assert fiat_convert._find_price(crypto_symbol="btc", fiat_symbol="usd") == 0.0
CryptoToFiatConverter._coingecko = cmc_temp
fiat_convert._coingecko = cmc_temp
def test_fiat_too_many_requests_response(mocker, caplog):