Skip to content

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

test(agent): adjust flow prompt test imports and assertions

Steven Enamakeld5a38141a1ce
diff --git a/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs b/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
index 9782308583..40db6ef64f 100644
--- a/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
+++ b/crates/openhuman-core/src/agent/prompts/flow_archetype_tests.rs
@@ -29,7 +29,6 @@ fn renamed_dynamic_flow_builtin_keeps_its_prompt_owner() {
is_bus_backed_builtin(&definition),
"a library actor id must not erase the resolved builtin prompt owner"
);
- assert_eq!(prompt_owner(&definition), Some("workflow_builder"));
}
#[tokio::test]
diff --git a/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs b/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
index b6ff561bd4..88e96d3e8f 100644
--- a/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/registry/agents/flow_discovery/prompt_tests.rs
@@ -1,4 +1,5 @@
use super::*;
+use crate::agent::prompts::{PromptContext, ToolCallFormat};
fn ctx<'a>(
workspace: &'a std::path::Path,
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
index 327f546878..e287576214 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_flow_prompt_tests.rs
@@ -1,5 +1,3 @@
-use super::*;
-
#[cfg(feature = "flows")]
#[tokio::test]
async fn cold_flow_prompt_uses_the_module_and_warm_resume_does_not_refetch() {