chore: tighten scheduling review coverage
This commit is contained in:
@@ -94,6 +94,28 @@ def test_concurrent_deployment_saves_advance_revision_without_lost_updates(
|
||||
assert store.get_deployment("concurrent.personal").revision == 9
|
||||
|
||||
|
||||
def test_deployment_revision_increments_on_save(tmp_path) -> None:
|
||||
artifacts = FileWorkflowArtifactStore(tmp_path)
|
||||
artifacts.save_deployment(
|
||||
WorkflowDeployment(
|
||||
id="dep-1",
|
||||
artifact_id="wf-1",
|
||||
artifact_version=1,
|
||||
bindings=[],
|
||||
)
|
||||
)
|
||||
assert artifacts.get_deployment("dep-1").revision == 1
|
||||
artifacts.save_deployment(
|
||||
WorkflowDeployment(
|
||||
id="dep-1",
|
||||
artifact_id="wf-1",
|
||||
artifact_version=2,
|
||||
bindings=[],
|
||||
)
|
||||
)
|
||||
assert artifacts.get_deployment("dep-1").revision == 2
|
||||
|
||||
|
||||
def test_file_store_loads_legacy_artifact_and_rewrites_canonical_shape(
|
||||
tmp_path,
|
||||
) -> None:
|
||||
|
||||
Reference in New Issue
Block a user