Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(flows): update graph validation helper

Steven Enamakel5985c4651425
diff --git a/crates/openhuman-core/src/flows/ops_tests.rs b/crates/openhuman-core/src/flows/ops_tests.rs
index 48c51b9e1a..e3e91d879a 100644
--- a/crates/openhuman-core/src/flows/ops_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_tests.rs
@@ -22,12 +22,14 @@ fn test_config(tmp: &TempDir) -> Config {
fn structurally_valid_graph(value: Value) -> Value {
let graph = tinyflows::migrate::deserialize_graph(value).expect("graph should deserialize");
tinyflows::validate::validate(&graph).expect("fixture should be structurally valid");
- tinyflows::compat::ensure_compatible(&graph).expect("fixture should be engine-compatible");
serde_json::to_value(graph).expect("graph serializes to portable JSON")
}
fn graph(value: Value) -> Value {
- structurally_valid_graph(value)
+ let graph = tinyflows::migrate::deserialize_graph(value).expect("graph should deserialize");
+ tinyflows::validate::validate(&graph).expect("fixture should be structurally valid");
+ tinyflows::compat::ensure_compatible(&graph).expect("fixture should be engine-compatible");
+ serde_json::to_value(graph).expect("graph serializes to portable JSON")
}
fn trigger_only_graph() -> Value {