From 9a9b4e15f37e6a968aa96cbaebb3cb0403af1635 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Jan 2026 17:12:48 +0100 Subject: [PATCH] test: pandas warning tests to show warnings --- 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 1cad0e2b4..5eb933f44 100644 --- a/tests/strategy/test_interface.py +++ b/tests/strategy/test_interface.py @@ -1047,7 +1047,7 @@ def test_pandas_warning_direct(ohlcv_history, function, raises, recwarn): # Fixed in 2.2.x getattr(_STRATEGY, function)(df, {"pair": "ETH/BTC"}) else: - assert len(recwarn) == 0 + assert len(recwarn) == 0, f"warnings: {', '.join(recwarn.list)}" getattr(_STRATEGY, function)(df, {"pair": "ETH/BTC"}) @@ -1055,4 +1055,4 @@ def test_pandas_warning_direct(ohlcv_history, function, raises, recwarn): def test_pandas_warning_through_analyze_pair(ohlcv_history, mocker, recwarn): mocker.patch.object(_STRATEGY.dp, "ohlcv", return_value=ohlcv_history) _STRATEGY.analyze_pair("ETH/BTC") - assert len(recwarn) == 0 + assert len(recwarn) == 0, f"warnings: {', '.join(recwarn.list)}"