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)}"