From 567d4331fddd94191c68d56e4d9820b0857681cf Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 22 Sep 2025 19:44:03 +0200 Subject: [PATCH] test: initial delistFilter tests --- tests/plugins/test_pairlist.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/plugins/test_pairlist.py b/tests/plugins/test_pairlist.py index da4a3a780..cccef2c56 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -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 "