test: Add additional test

shows the difference between max_rank 2 and max_rank6 in blacklist mode.
This commit is contained in:
Matthias
2025-11-06 07:05:36 +01:00
parent 781d8501cb
commit 7526fd0e0d

View File

@@ -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(