fix: expose admitted run filter over RPC
This commit is contained in:
@@ -28,6 +28,7 @@ from wf_transport_rpc_http.client.schedules import RpcScheduleClientMixin
|
||||
from wf_transport_rpc_http.models import (
|
||||
CreateScheduleParams,
|
||||
ListOccurrencesParams,
|
||||
ListRunsParams,
|
||||
UpdateScheduleParams,
|
||||
)
|
||||
|
||||
@@ -36,6 +37,11 @@ def _cron() -> dict[str, Any]:
|
||||
return {"kind": "cron", "expression": "* * * * *", "timezone": "UTC"}
|
||||
|
||||
|
||||
def test_rpc_list_runs_accepts_admitted_status() -> None:
|
||||
"""RPC validation exposes the API's admitted-run filter."""
|
||||
assert ListRunsParams(status="admitted").status == "admitted"
|
||||
|
||||
|
||||
def _constant_plan() -> RawWorkflowPlan:
|
||||
return RawWorkflowPlan.model_validate(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user