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 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WzxdWYdwRAtMg7ki6TKxuU
This commit is contained in:
Krzysztof Rudnicki 2026-11-01 21:12:03 +01:00
parent c145431dc9
commit e98ee1f874

View File

@ -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"),