chore: clean up scheduling review diagnostics
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user