mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-03-01 15:52:43 +00:00
test: update MaxDrawdown protection tests for starting_balance and calculation modes
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user