From e1d7c7a081e516817c29c8430af8ff49c08a21fe Mon Sep 17 00:00:00 2001 From: ABS <53243996+ABSllk@users.noreply.github.com> Date: Tue, 17 Feb 2026 15:20:12 +0800 Subject: [PATCH] test: update MaxDrawdown protection tests for starting_balance and calculation modes --- tests/plugins/test_protections.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/plugins/test_protections.py b/tests/plugins/test_protections.py index 2814252fa..a70148b35 100644 --- a/tests/plugins/test_protections.py +++ b/tests/plugins/test_protections.py @@ -99,9 +99,9 @@ def test_protectionmanager(mocker, default_conf): for handler in freqtrade.protections._protection_handlers: assert handler.name in AVAILABLE_PROTECTIONS if not handler.has_global_stop: - assert handler.global_stop(datetime.now(UTC), "*") is None + assert handler.global_stop(datetime.now(UTC), "*", 1000.0) is None if not handler.has_local_stop: - assert handler.stop_per_pair("XRP/BTC", datetime.now(UTC), "*") is None + assert handler.stop_per_pair("XRP/BTC", datetime.now(UTC), "*", 1000.0) is None @pytest.mark.parametrize(