test: update MaxDrawdown protection tests for starting_balance and calculation modes

This commit is contained in:
ABS
2026-02-17 15:20:12 +08:00
parent d593384219
commit e1d7c7a081

View File

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