Skip to content

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

test(tests): remove unused imports from various test files

Steven Enamakelf016404249c3
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs
index c783f8cd87..a28f2a8999 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents_tenant_tests.rs
@@ -210,6 +210,7 @@ async fn saas_dispatch_exposes_only_the_callers_detached_worker_controls() {
);
})
.await;
+ assert!(crate::core::all::schema_for_rpc_method("openhuman.config_get_config").is_none());
CoreContext::scope(pair.alice.clone(), async {
assert!(resume_ref_for_task(&DispatchCtx::ambient(), &pair.a.task, PARENT).is_ok());
})
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
index 1699c722b2..65e7d68afb 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/dispatch_tests.rs
@@ -3,7 +3,6 @@ use async_trait::async_trait;
use std::sync::Arc;
use tinytools::Tool;
-use tinyagents_harness::tool::ToolDispatch;
use tinyagents_harness::tools::AskClarificationTool;
struct DelegationRegistrationTool {
diff --git a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
index 57fd500eea..7b06fccdb0 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_dispatch.rs
@@ -7,7 +7,6 @@ use super::super::Channel;
use super::common::{use_real_agent_handler, RecordingChannel, SlowModel};
use crate::agent::bus::{mock_agent_run_turn, AgentTurnRequest, AgentTurnResponse};
use crate::core::events::DomainEvent;
-use crate::inference::provider;
use std::collections::HashMap;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::{Arc, Mutex};
diff --git a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
index d04cafcf53..e80aa0cb52 100644
--- a/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
+++ b/crates/openhuman-core/src/channels/tests/runtime_tool_calls.rs
@@ -8,7 +8,6 @@ use super::common::{
IterativeToolModel, MockPriceTool, ModelCaptureModel, RecordingChannel,
TelegramRecordingChannel, ToolCallingModel,
};
-use crate::inference::provider;
use std::collections::HashMap;
use std::sync::atomic::Ordering;
use std::sync::{Arc, Mutex};
diff --git a/crates/openhuman-core/src/tools/ops_tests.rs b/crates/openhuman-core/src/tools/ops_tests.rs
index 41ddf6dc79..26d404ba0d 100644
--- a/crates/openhuman-core/src/tools/ops_tests.rs
+++ b/crates/openhuman-core/src/tools/ops_tests.rs
@@ -3,7 +3,6 @@ use crate::config::{BrowserConfig, Config};
use crate::security::credentials::{AuthService, APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME};
use crate::security::AuditLogger;
use crate::tools::ops::{all_tools, tool_group};
-use std::collections::HashMap;
use tempfile::TempDir;
use tinytools::ToolContent;
use tinytools::ToolResult;