From 7526fd0e0dd497f026f4f4299b3c9f9fac40eba3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 6 Nov 2025 07:05:36 +0100 Subject: [PATCH] test: Add additional test shows the difference between max_rank 2 and max_rank6 in blacklist mode. --- 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 1e881d90b..fb42f22ea 100644 --- a/tests/plugins/test_pairlist.py +++ b/tests/plugins/test_pairlist.py @@ -2354,6 +2354,16 @@ def test_FullTradesFilter(mocker, default_conf_usdt, fee, caplog) -> None: ["LTC/USDT", "XRP/USDT", "NEO/USDT", "TKN/USDT", "ETC/USDT", "ADA/USDT"], 1, ), + ( + [ + # Blacklist top 6 MarketCap pairs - removes XRP which is at spot 6. + {"method": "StaticPairList", "allow_inactive": True}, + {"method": "MarketCapPairList", "mode": "blacklist", "max_rank": 6}, + ], + "spot", + ["LTC/USDT", "NEO/USDT", "TKN/USDT", "ETC/USDT", "ADA/USDT"], + 1, + ), ], ) def test_MarketCapPairList_filter(