test: add test for DelistFilter

This commit is contained in:
Matthias
2025-09-22 19:59:12 +02:00
parent 567d4331fd
commit 17202c6d29
2 changed files with 63 additions and 2 deletions

View File

@@ -8,6 +8,7 @@ from datetime import UTC, datetime, timedelta
from freqtrade.exceptions import ConfigurationError
from freqtrade.exchange.exchange_types import Ticker
from freqtrade.plugins.pairlist.IPairList import IPairList, PairlistParameter, SupportsBacktesting
from freqtrade.util import format_date
logger = logging.getLogger(__name__)
@@ -85,7 +86,7 @@ class DelistFilter(IPairList):
if remove_pair:
self.log_once(
f"Removed {pair} from whitelist, because it will be delisted on {delist_date}.",
f"Removed {pair} from whitelist, because it will be delisted on {format_date(delist_date)}.",
logger.info,
)
return False