From c18a52fd2dcdfeceb9905df83940b34e4b6abb24 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 25 Oct 2025 13:15:41 +0200 Subject: [PATCH] test: update tests for new error formatting --- tests/strategy/test_interface.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/strategy/test_interface.py b/tests/strategy/test_interface.py index 3d6f5c752..b3ee0c398 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -147,14 +147,14 @@ def test_get_signal_exception_valueerror(mocker, caplog, ohlcv_history): mocker.patch.object(_STRATEGY.dp, "ohlcv", return_value=ohlcv_history) mocker.patch.object(_STRATEGY, "_analyze_ticker_internal", side_effect=ValueError("xyz")) _STRATEGY.analyze_pair("foo") - assert log_has_re(r"Strategy caused the following exception: xyz.*", caplog) + assert log_has_re(r"Strategy caused the following exception: ValueError\('xyz'\).*", caplog) caplog.clear() mocker.patch.object( _STRATEGY, "analyze_ticker", side_effect=Exception("invalid ticker history ") ) _STRATEGY.analyze_pair("foo") - assert log_has_re(r"Strategy caused the following exception: xyz.*", caplog) + assert log_has_re(r"Strategy caused the following exception: ValueError\('xyz'\).*", caplog) def test_get_signal_old_dataframe(default_conf, mocker, caplog, ohlcv_history):