Skip to content

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

refactor(tests): adjust imports in various test files

Steven Enamakel9df3fa7f2ed2
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
index 94dba635de..054633c972 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once_tests.rs
@@ -1,5 +1,5 @@
use super::*;
-use serde_json::{Value, json};
+use serde_json::{json, Value};
use tinyinference_llm::message::Message;
use tinyinference_llm::model::ResponseFormat;
use tinyinference_llm::tool::ToolSchema;
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/turn_guards.rs b/crates/openhuman-core/src/inference/host_runtime/ops/turn_guards.rs
index 812781e2b7..1e205115c8 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/turn_guards.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/turn_guards.rs
@@ -4,7 +4,7 @@
use crate::config::Config;
use crate::security::prompt_injection::{
- PromptEnforcementAction, PromptEnforcementContext, enforce_prompt_input,
+ enforce_prompt_input, PromptEnforcementAction, PromptEnforcementContext,
};
pub(super) fn prompt_guard_user_message(action: PromptEnforcementAction) -> &'static str {
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs b/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs
index eebbbce151..1877deed9d 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops_tests.rs
@@ -280,7 +280,7 @@ async fn effective_origin_defaults_to_direct_chat_outside_any_scope() {
/// see, not the blanket `Cli` allowance this RPC would otherwise impose.
#[tokio::test]
async fn effective_origin_keeps_an_embedder_scoped_label() {
- use crate::security::turn_origin::{AgentTurnOrigin, TrustedAutomationSource, with_origin};
+ use crate::security::turn_origin::{with_origin, AgentTurnOrigin, TrustedAutomationSource};
let observed = with_origin(
AgentTurnOrigin::TrustedAutomation {
job_id: "run-7".to_string(),
@@ -308,7 +308,7 @@ async fn effective_origin_keeps_an_embedder_scoped_label() {
/// touched, not a silent fall-through to the orchestrator.
#[tokio::test]
async fn agent_chat_for_rejects_an_unknown_agent_id() {
- use crate::inference::host_runtime::ops::{AgentChatTarget, agent_chat_for};
+ use crate::inference::host_runtime::ops::{agent_chat_for, AgentChatTarget};
let tmp = tempfile::tempdir().unwrap();
let mut config = test_config(&tmp);
std::fs::create_dir_all(&config.workspace_dir).unwrap();
diff --git a/crates/openhuman-core/src/triage/escalation_tests.rs b/crates/openhuman-core/src/triage/escalation_tests.rs
index fcc8f8b978..45813d927d 100644
--- a/crates/openhuman-core/src/triage/escalation_tests.rs
+++ b/crates/openhuman-core/src/triage/escalation_tests.rs
@@ -170,6 +170,7 @@ async fn react_dispatch_keeps_routing_without_creating_child_lifecycle_records()
.iter()
.map(|tool| tool.name.as_str())
.collect();
+ assert!(tool_names.contains(&"read_workspace_state"));
assert!(
!tool_names
.iter()