mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
chore: fix RUF043 violations
This commit is contained in:
@@ -1669,7 +1669,7 @@ def test_rangestabilityfilter_checks(mocker, default_conf, markets, tickers):
|
||||
|
||||
with pytest.raises(
|
||||
OperationalException,
|
||||
match="RangeStabilityFilter requires sort_direction to be either None.*",
|
||||
match=r"RangeStabilityFilter requires sort_direction to be either None\.*",
|
||||
):
|
||||
get_patched_freqtradebot(mocker, default_conf)
|
||||
|
||||
@@ -2526,7 +2526,7 @@ def test_MarketCapPairList_exceptions(mocker, default_conf_usdt, caplog):
|
||||
}
|
||||
]
|
||||
with pytest.raises(
|
||||
OperationalException, match="Category layer250 not in coingecko category list."
|
||||
OperationalException, match=r"Category layer250 not in coingecko category list\."
|
||||
):
|
||||
PairListManager(exchange, default_conf_usdt)
|
||||
|
||||
|
||||
@@ -82,7 +82,7 @@ def test_fetch_pairlist_mock_response_html(mocker, rpl_config):
|
||||
exchange, pairlistmanager, rpl_config, rpl_config["pairlists"][0], 0
|
||||
)
|
||||
|
||||
with pytest.raises(OperationalException, match="RemotePairList is not of type JSON."):
|
||||
with pytest.raises(OperationalException, match=r"RemotePairList is not of type JSON\."):
|
||||
remote_pairlist.fetch_pairlist()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user