chore: fix RUF043 violations

This commit is contained in:
Matthias
2025-09-15 19:20:20 +02:00
parent 95a710d4a8
commit 9f436dcd1e
15 changed files with 51 additions and 46 deletions

View File

@@ -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)

View File

@@ -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()