From 1760624954938c119905d1dd49c3ad1134460ec4 Mon Sep 17 00:00:00 2001 From: Matthias Date: Fri, 2 Aug 2024 19:48:43 +0200 Subject: [PATCH] test: Test "invalid date format" --- tests/test_configuration.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_configuration.py b/tests/test_configuration.py index af482a965..6943549d9 100644 --- a/tests/test_configuration.py +++ b/tests/test_configuration.py @@ -855,6 +855,10 @@ def test_validate_whitelist(default_conf): [{"method": "StoplossGuard", "lookback_period_candles": 20, "unlock_at": "20:02"}], None, ), + ( + [{"method": "StoplossGuard", "lookback_period_candles": 20, "unlock_at": "55:102"}], + "Invalid date format for unlock_at: 55:102.", + ), ], ) def test_validate_protections(default_conf, protconf, expected):