From e98ee1f87472932e317ced477e2f32316d565de2 Mon Sep 17 00:00:00 2001 From: Krzysztof kuhy Rudnicki Date: Sun, 1 Nov 2026 21:12:03 +0100 Subject: [PATCH] tests: bonus caps at the day ceiling, not 24:00 aa2776a moved the live clamp to the day's ceiling; this test still pinned the old 24:00. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01WzxdWYdwRAtMg7ki6TKxuU --- screen_locker/tests/test_shutdown_minutes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/screen_locker/tests/test_shutdown_minutes.py b/screen_locker/tests/test_shutdown_minutes.py index 383fed2..d29cab6 100644 --- a/screen_locker/tests/test_shutdown_minutes.py +++ b/screen_locker/tests/test_shutdown_minutes.py @@ -102,14 +102,14 @@ class TestMinutesReachTheHelperScript: ) assert args == ["--restore", "18:30", "18:30", "05:00"] - def test_the_bonus_is_capped_at_24_00( + def test_the_bonus_is_capped_at_the_day_ceiling( self, mock_tk: MagicMock, mock_sys_exit: MagicMock, tmp_path: Path ) -> None: - """A bonus that overshoots is capped at 24:00 in the helper script's arguments.""" + """A bonus that overshoots is capped at the day's 23:00 ceiling, not 24:00.""" args = self._run( mock_tk, tmp_path, (1380, 1380, 300), "_adjust_shutdown_time_by", 90 ) - assert args == ["--restore", "24:00", "24:00", "05:00"] + assert args == ["--restore", "23:00", "23:00", "05:00"] @pytest.mark.parametrize( ("config", "expected"),