chore: polish interrupt contract implementation
This commit is contained in:
@@ -3,9 +3,8 @@ from __future__ import annotations
|
|||||||
from collections.abc import Mapping
|
from collections.abc import Mapping
|
||||||
from typing import Annotated, Literal, Self
|
from typing import Annotated, Literal, Self
|
||||||
|
|
||||||
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
|
|
||||||
|
|
||||||
from jsonschema import Draft202012Validator, SchemaError, validators
|
from jsonschema import Draft202012Validator, SchemaError, validators
|
||||||
|
from pydantic import BaseModel, ConfigDict, Field, field_validator, model_validator
|
||||||
|
|
||||||
from wf_core.models.conditions import Condition
|
from wf_core.models.conditions import Condition
|
||||||
from wf_core.models.schemas import SchemaRef
|
from wf_core.models.schemas import SchemaRef
|
||||||
|
|||||||
@@ -184,7 +184,9 @@ async def test_interrupt_resume_payload_validates_before_state_mutation() -> Non
|
|||||||
),
|
),
|
||||||
EndNode(id="end", type="end", outcome="submitted"),
|
EndNode(id="end", type="end", outcome="submitted"),
|
||||||
],
|
],
|
||||||
edges=[Edge.model_validate({"from": "ask", "outcome": "submitted", "to": "end"})],
|
edges=[
|
||||||
|
Edge.model_validate({"from": "ask", "outcome": "submitted", "to": "end"})
|
||||||
|
],
|
||||||
)
|
)
|
||||||
interrupted = await execute_workflow_async(workflow, {}, {})
|
interrupted = await execute_workflow_async(workflow, {}, {})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user