test: harden scheduling review boundaries
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user