The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(session_host): update test configuration setup
Steven Enamakel29e310525d7e
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rsindex 7b806de06f..17f5c045e4 100644--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs@@ -21,8 +21,8 @@ fn spec(name: &str) -> ToolSpec {// `AgentDefinitionRegistry` singleton's init-once state.// ─────────────────────────────────────────────────────────────────────────────-fn test_config(tmp: &tempfile::TempDir) -> crate::config::Config {- let mut config = crate::agent::session_host::test_support::config_with_model_fixture();+fn test_config_without_inference(tmp: &tempfile::TempDir) -> crate::config::Config {+ let mut config = crate::config::Config::default();config.workspace_dir = tmp.path().join("workspace");config.action_dir = tmp.path().join("workspace");config.config_path = tmp.path().join("config.toml");@@ -30,6 +30,13 @@ fn test_config(tmp: &tempfile::TempDir) -> crate::config::Config {config}+fn test_config(tmp: &tempfile::TempDir) -> crate::config::Config {+ let mut config = test_config_without_inference(tmp);+ crate::agent::session_host::test_support::install_model_fixture();+ config.default_model = Some("test/session-fixture".to_string());+ config+}+/// Look up a real built-in `AgentDefinition` by id — loaded fresh from the/// bundled TOML files, entirely independent of the global registry/// singleton (so tests can't be poisoned by another test'sdiff --git a/crates/openhuman-core/src/agent/session_host/test_support.rs b/crates/openhuman-core/src/agent/session_host/test_support.rsindex 932037d271..337aeee6e1 100644--- a/crates/openhuman-core/src/agent/session_host/test_support.rs+++ b/crates/openhuman-core/src/agent/session_host/test_support.rs@@ -1,6 +1,5 @@use super::*;-use crate::config::Config;use crate::inference::provider::factory::PROVIDER_OPENHUMAN;use crate::inference::registry::{ChatModelEntry, ChatModelRequest, ProviderModelHooks};use std::sync::Arc;@@ -86,9 +85,3 @@ pub(crate) fn install_model_fixture_in(extensions: &crate::core::slots::Extensio);}-pub(crate) fn config_with_model_fixture() -> Config {- install_model_fixture();- let mut config = Config::default();- config.default_model = Some("test/session-fixture".into());- config-}