test: initial delistFilter tests

This commit is contained in:
Matthias
2025-09-22 19:44:03 +02:00
parent 92c9f443e8
commit 567d4331fd

View File

@@ -1833,6 +1833,16 @@ def test_spreadfilter_invalid_data(mocker, default_conf, markets, tickers, caplo
None,
"PriceFilter requires max_value to be >= 0",
), # OperationalException expected
(
{"method": "DelistFilter", "max_days_from_now": -1},
None,
"DelistFilter requires max_days_from_now to be >= 0",
), # ConfigurationError expected
(
{"method": "DelistFilter", "max_days_from_now": 1},
"[{'DelistFilter': 'DelistFilter - Filtering pairs that will be delisted in the next 1 days.'}]",
None,
), # ConfigurationError expected
(
{"method": "RangeStabilityFilter", "lookback_days": 10, "min_rate_of_change": 0.01},
"[{'RangeStabilityFilter': 'RangeStabilityFilter - Filtering pairs with rate "