style: apply review test formatting
This commit is contained in:
@@ -226,4 +226,3 @@ def resolve_schedule_input_bindings(
|
|||||||
except LocalPathError as exc:
|
except LocalPathError as exc:
|
||||||
raise WorkflowExecutionError(f"{label} {location}: {exc}") from exc
|
raise WorkflowExecutionError(f"{label} {location}: {exc}") from exc
|
||||||
return payload
|
return payload
|
||||||
|
|
||||||
|
|||||||
@@ -211,9 +211,12 @@ def test_interval_identity_rejects_naive_or_half_specified_bounds(
|
|||||||
|
|
||||||
def test_history_identity_without_interval_still_uses_created_time() -> None:
|
def test_history_identity_without_interval_still_uses_created_time() -> None:
|
||||||
created = datetime(2026, 9, 8, 14, 0, tzinfo=UTC)
|
created = datetime(2026, 9, 8, 14, 0, tzinfo=UTC)
|
||||||
assert entry_occurrence_id(
|
assert (
|
||||||
|
entry_occurrence_id(
|
||||||
HistoryEntry(schedule_id="a", kind="interval-summary"), created
|
HistoryEntry(schedule_id="a", kind="interval-summary"), created
|
||||||
) == "a|summary|2026-09-08T14:00:00+00:00"
|
)
|
||||||
|
== "a|summary|2026-09-08T14:00:00+00:00"
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def test_failed_run_persists_reason_without_callback(tmp_path: Path) -> None:
|
def test_failed_run_persists_reason_without_callback(tmp_path: Path) -> None:
|
||||||
|
|||||||
@@ -527,9 +527,7 @@ async def test_update_stale_revision_rejected(tmp_path: Path) -> None:
|
|||||||
|
|
||||||
async def test_admin_mutation_waits_for_poll_transaction(tmp_path: Path) -> None:
|
async def test_admin_mutation_waits_for_poll_transaction(tmp_path: Path) -> None:
|
||||||
"""A poll transition and an API edit cannot interleave store writes."""
|
"""A poll transition and an API edit cannot interleave store writes."""
|
||||||
api, sched_store, run_store, artifact_store, _ = _harness(
|
api, sched_store, run_store, artifact_store, _ = _harness(tmp_path / "admin_poll")
|
||||||
tmp_path / "admin_poll"
|
|
||||||
)
|
|
||||||
await api.create_schedule(
|
await api.create_schedule(
|
||||||
schedule_id="s", deployment_id="dep.personal", trigger=_cron()
|
schedule_id="s", deployment_id="dep.personal", trigger=_cron()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -97,9 +97,7 @@ def test_update_schedule_params_match_create_numeric_constraints() -> None:
|
|||||||
)
|
)
|
||||||
for revision in (0, -1):
|
for revision in (0, -1):
|
||||||
with pytest.raises(ValidationError):
|
with pytest.raises(ValidationError):
|
||||||
UpdateScheduleParams(
|
UpdateScheduleParams(schedule_id="schedule", expected_revision=revision)
|
||||||
schedule_id="schedule", expected_revision=revision
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def test_schedule_policy_params_reject_unknown_values() -> None:
|
def test_schedule_policy_params_reject_unknown_values() -> None:
|
||||||
|
|||||||
Reference in New Issue
Block a user