Add a test to check the behavior when converting two FIAT
This commit is contained in:
parent
638d98735f
commit
e8a59f4c20
@ -133,6 +133,13 @@ def test_fiat_convert_same_currencies(mocker):
|
||||
assert fiat_convert.get_price(crypto_symbol='USD', fiat_symbol='USD') == 1.0
|
||||
|
||||
|
||||
def test_fiat_convert_two_FIAT(mocker):
|
||||
patch_coinmarketcap(mocker)
|
||||
fiat_convert = CryptoToFiatConverter()
|
||||
|
||||
assert fiat_convert.get_price(crypto_symbol='USD', fiat_symbol='EUR') == 0.0
|
||||
|
||||
|
||||
def test_loadcryptomap(mocker):
|
||||
patch_coinmarketcap(mocker)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user