test: update tests for new log message format

This commit is contained in:
Matthias
2026-01-10 17:45:22 +01:00
parent 9cbb8ec1c2
commit 14aeb56ff9
2 changed files with 6 additions and 4 deletions

View File

@@ -1396,7 +1396,7 @@ def test_gen_pair_whitelist_not_supported(mocker, default_conf, tickers) -> None
)
with pytest.raises(
OperationalException, match=r"Exchange does not support dynamic whitelist.*"
OperationalException, match=r"Exchange .* does not support dynamic whitelist.*"
):
get_patched_freqtradebot(mocker, default_conf)
@@ -1410,7 +1410,9 @@ def test_pair_whitelist_not_supported_Spread(mocker, default_conf, tickers) -> N
exchange_has=MagicMock(return_value=False),
)
with pytest.raises(OperationalException, match=r"Exchange does not support fetchTickers, .*"):
with pytest.raises(
OperationalException, match=r"Exchange .* does not support fetchTickers, .*"
):
get_patched_freqtradebot(mocker, default_conf)
mocker.patch(f"{EXMS}.exchange_has", MagicMock(return_value=True))

View File

@@ -43,9 +43,9 @@ def test_volume_change_pair_list_init_exchange_support(mocker, rpl_config):
with pytest.raises(
OperationalException,
match=r"Exchange does not support dynamic whitelist in this configuration. "
match=r"Exchange .* does not support dynamic whitelist in this configuration. "
r"Please edit your config and either remove PercentChangePairList, "
r"or switch to using candles. and restart the bot.",
r"or switch to using candles and restart the bot.",
):
get_patched_freqtradebot(mocker, rpl_config)