Allow fiat_convert to use same symbol for Crypto and FIAT

This commit is contained in:
Gerald Lonlas
2018-06-01 20:58:07 -07:00
parent c9e49ed7b4
commit 638d98735f
2 changed files with 18 additions and 4 deletions

View File

@@ -126,6 +126,13 @@ def test_fiat_convert_get_price(mocker):
assert fiat_convert._pairs[0]._expiration is not expiration
def test_fiat_convert_same_currencies(mocker):
patch_coinmarketcap(mocker)
fiat_convert = CryptoToFiatConverter()
assert fiat_convert.get_price(crypto_symbol='USD', fiat_symbol='USD') == 1.0
def test_loadcryptomap(mocker):
patch_coinmarketcap(mocker)