From 14aeb56ff9a388fb30a13fd5d42c81c2dce01b0b Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 10 Jan 2026 17:45:22 +0100 Subject: [PATCH] test: update tests for new log message format --- tests/plugins/test_pairlist.py | 6 ++++-- tests/plugins/test_percentchangepairlist.py | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/plugins/test_pairlist.py b/tests/plugins/test_pairlist.py index fb42f22ea..e3b63bdb3 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -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)) diff --git a/tests/plugins/test_percentchangepairlist.py b/tests/plugins/test_percentchangepairlist.py index 7bbf92e5d..bf362d4fb 100644 --- a/tests/plugins/test_percentchangepairlist.py +++ b/tests/plugins/test_percentchangepairlist.py @@ -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)