Consistent CoinGecko naming in test_fiat_convert.py

This commit is contained in:
topscoder 2022-04-01 20:57:09 +02:00 committed by GitHub
parent 7db3c846b4
commit 60d52f0a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ def test_fiat_too_many_requests_response(mocker, caplog):
assert len(fiat_convert._coinlistings) == 0 assert len(fiat_convert._coinlistings) == 0
assert fiat_convert._backoff > datetime.datetime.now().timestamp() assert fiat_convert._backoff > datetime.datetime.now().timestamp()
assert log_has( assert log_has(
'Too many requests for Coingecko API, backing off and trying again later.', 'Too many requests for CoinGecko API, backing off and trying again later.',
caplog caplog
) )
@ -156,7 +156,7 @@ def test_fiat_multiple_coins(mocker, caplog):
assert fiat_convert._get_gekko_id('hnt') is None assert fiat_convert._get_gekko_id('hnt') is None
assert fiat_convert._get_gekko_id('eth') == 'ethereum' assert fiat_convert._get_gekko_id('eth') == 'ethereum'
assert log_has('Found multiple mappings in goingekko for hnt.', caplog) assert log_has('Found multiple mappings in CoinGecko for hnt.', caplog)
def test_fiat_invalid_response(mocker, caplog): def test_fiat_invalid_response(mocker, caplog):