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
chore(tests): split composio and connector tests into focused modules
Steven Enamakel0afc961b411a
diff --git a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rsindex 5faccd40b0..46b16241cd 100644--- a/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_direct_mode_routing_tests.rs@@ -48,6 +48,7 @@ fn execute_tool_resolves_to_backend_kind_when_mode_is_backend() {// the user is on default (mode = "backend") and a session token is// present. Without the token, `resolve_composio_route` returns// Err("no backend session"); store one to get past that gate.+ crate::integrations::composio::test_backend_route::register();let tmp = tempfile::tempdir().unwrap();let mut config = crate::config::Config::default();config.config_path = tmp.path().join("config.toml");diff --git a/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs b/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rsindex 4c3fbc01e4..ee28cc6162 100644--- a/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs+++ b/crates/openhuman-core/src/integrations/composio/tools_metadata_and_sandbox_tests.rs@@ -338,6 +338,7 @@ fn agent_tools_are_all_removed_when_composio_is_disabled_even_if_signed_in() {#[test]fn agent_tools_register_when_backend_signed_in() {+ crate::integrations::composio::test_backend_route::register();let tmp = tempfile::tempdir().unwrap();let mut config = crate::config::Config::default();config.config_path = tmp.path().join("config.toml");diff --git a/crates/openhuman-core/src/modules/connectors_tests.rs b/crates/openhuman-core/src/modules/connectors_tests.rsindex 74a0ac9b8f..53ca80a6a2 100644--- a/crates/openhuman-core/src/modules/connectors_tests.rs+++ b/crates/openhuman-core/src/modules/connectors_tests.rs@@ -173,8 +173,21 @@ fn an_empty_mode_is_treated_as_the_backend_default() {assert!(!error.contains("unknown composio mode"), "{error}");}+#[test]+fn the_backend_route_is_unavailable_without_a_registered_target() {+ let mut config = bare_config();+ config.composio.mode = COMPOSIO_MODE_BACKEND.to_string();++ let error = module_config(&config).expect_err("no proxy target is registered");+ assert!(+ error.starts_with(crate::core::observability::BACKEND_UNAVAILABLE_PREFIX),+ "{error}"+ );+}+#[test]fn the_backend_route_needs_a_session() {+ crate::integrations::composio::test_backend_route::register();let mut config = bare_config();config.composio.mode = COMPOSIO_MODE_BACKEND.to_string();