mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 22:10:35 +00:00
test: pandas warning tests to show warnings
This commit is contained in:
@@ -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)}"
|
||||
|
||||
Reference in New Issue
Block a user