feat(vwb): harden supervised verdict evidence
This commit is contained in:
@@ -111,3 +111,39 @@ def test_preview_endpoint_returns_read_only_workflow():
|
||||
"wait_for_state",
|
||||
"pause_for_human",
|
||||
]
|
||||
|
||||
|
||||
def test_unsupported_method_is_reported_as_warning(tmp_path):
|
||||
root = tmp_path / "competences"
|
||||
candidate = root / "candidate"
|
||||
candidate.mkdir(parents=True)
|
||||
(candidate / "unsupported_preview.yaml").write_text(
|
||||
"\n".join(
|
||||
[
|
||||
"schema_version: 1",
|
||||
"id: unsupported_preview",
|
||||
"name: Unsupported preview",
|
||||
"learning_state: candidate",
|
||||
"intent:",
|
||||
" fr: tester une methode non supportee",
|
||||
"methods:",
|
||||
"- id: step_1_unknown",
|
||||
" kind: shell_magic",
|
||||
" primitive_ref: shell_magic",
|
||||
" parameters: {}",
|
||||
"failure_message_template:",
|
||||
" attendu: aucun replay automatique",
|
||||
]
|
||||
),
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
preview = competence_yaml_to_vwb_preview("unsupported_preview", root=root)
|
||||
|
||||
assert [step["action_type"] for step in preview["steps"]] == [
|
||||
"pause_for_human",
|
||||
"pause_for_human",
|
||||
]
|
||||
assert preview["warnings"] == [
|
||||
"Methode non supportee en preview VWB: step_1_unknown"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user