chore: clean up scheduling review diagnostics

This commit is contained in:
lda
2026-09-09 22:19:50 +07:00 Verified
parent 80b26bff4e
commit 8d0c61737f
2 changed files with 12 additions and 10 deletions
@@ -1,5 +1,7 @@
from __future__ import annotations
from typing import Any, cast
import pytest
from pydantic import ValidationError
@@ -91,7 +93,7 @@ def test_update_schedule_params_match_create_numeric_constraints() -> None:
)
with pytest.raises(ValidationError):
UpdateScheduleParams(
schedule_id="schedule", expected_revision=1, max_steps="10"
schedule_id="schedule", expected_revision=1, max_steps=cast(Any, "10")
)
@@ -101,11 +103,11 @@ def test_schedule_policy_params_reject_unknown_values() -> None:
schedule_id="schedule",
deployment_id="deployment",
trigger={"kind": "oneshot", "at": "2026-09-08T12:00:00+00:00"},
overlap="queue",
overlap=cast(Any, "queue"),
)
with pytest.raises(ValidationError):
UpdateScheduleParams(
schedule_id="schedule", expected_revision=1, misfire="replay"
schedule_id="schedule", expected_revision=1, misfire=cast(Any, "replay")
)