test: harden scheduling review boundaries

This commit is contained in:
lda
2026-09-10 02:17:27 +07:00 Verified
parent ed70223c1b
commit f8ed8e2192
10 changed files with 231 additions and 25 deletions
@@ -95,6 +95,11 @@ def test_update_schedule_params_match_create_numeric_constraints() -> None:
UpdateScheduleParams(
schedule_id="schedule", expected_revision=1, max_steps=cast(Any, "10")
)
for revision in (0, -1):
with pytest.raises(ValidationError):
UpdateScheduleParams(
schedule_id="schedule", expected_revision=revision
)
def test_schedule_policy_params_reject_unknown_values() -> None: