Skip to content

Commit 9a9b4e1

Browse files
committed
test: pandas warning tests to show warnings
1 parent fcab946 commit 9a9b4e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/strategy/test_interface.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,12 +1047,12 @@ def test_pandas_warning_direct(ohlcv_history, function, raises, recwarn):
10471047
# Fixed in 2.2.x
10481048
getattr(_STRATEGY, function)(df, {"pair": "ETH/BTC"})
10491049
else:
1050-
assert len(recwarn) == 0
1050+
assert len(recwarn) == 0, f"warnings: {', '.join(recwarn.list)}"
10511051

10521052
getattr(_STRATEGY, function)(df, {"pair": "ETH/BTC"})
10531053

10541054

10551055
def test_pandas_warning_through_analyze_pair(ohlcv_history, mocker, recwarn):
10561056
mocker.patch.object(_STRATEGY.dp, "ohlcv", return_value=ohlcv_history)
10571057
_STRATEGY.analyze_pair("ETH/BTC")
1058-
assert len(recwarn) == 0
1058+
assert len(recwarn) == 0, f"warnings: {', '.join(recwarn.list)}"

0 commit comments

Comments
 (0)