mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Fix flake8 error in test_fiat_convert
This commit is contained in:
parent
f8cdd6475c
commit
be13856171
|
@ -138,7 +138,11 @@ def test_fiat_too_many_requests_response(mocker, caplog):
|
|||
length_cryptomap = len(fiat_convert._cryptomap)
|
||||
assert length_cryptomap == 0
|
||||
assert fiat_convert._backoff > datetime.datetime.now().timestamp()
|
||||
assert log_has('Too many requests for Coingecko API, backing off and trying again later.', caplog)
|
||||
assert log_has(
|
||||
'Too many requests for Coingecko API, backing off and trying again later.',
|
||||
caplog
|
||||
)
|
||||
|
||||
|
||||
def test_fiat_invalid_response(mocker, caplog):
|
||||
# Because CryptoToFiatConverter is a Singleton we reset the listings
|
||||
|
@ -157,6 +161,7 @@ def test_fiat_invalid_response(mocker, caplog):
|
|||
assert log_has_re('Could not load FIAT Cryptocurrency map for the following problem: .*',
|
||||
caplog)
|
||||
|
||||
|
||||
def test_convert_amount(mocker):
|
||||
mocker.patch('freqtrade.rpc.fiat_convert.CryptoToFiatConverter.get_price', return_value=12345.0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user