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: reorder imports and reformat test code
Steven Enamakel269efbd7254d
diff --git a/crates/openhuman-core/src/inference/embedding_host/factory_tests.rs b/crates/openhuman-core/src/inference/embedding_host/factory_tests.rsindex 0d60b5cd0d..40c4427b6d 100644--- a/crates/openhuman-core/src/inference/embedding_host/factory_tests.rs+++ b/crates/openhuman-core/src/inference/embedding_host/factory_tests.rs@@ -352,15 +352,9 @@ async fn factory_managed_provider_authenticates_with_config_scoped_token() {api_url: Some(base.clone()),..config};- let provider = create_embedding_provider_with_config(- &config,- "managed",- "voyage-3-large",- 3,- "",- None,- )- .expect("managed provider builds via config-aware factory");+ let provider =+ create_embedding_provider_with_config(&config, "managed", "voyage-3-large", 3, "", None)+ .expect("managed provider builds via config-aware factory");// Embed: the lazy bearer resolver reads the config scope, finds the// token, and authenticates to the mock.diff --git a/crates/openhuman-tinyhumans/src/backend/headers_tests.rs b/crates/openhuman-tinyhumans/src/backend/headers_tests.rsindex 92c20f4646..fcad7722aa 100644--- a/crates/openhuman-tinyhumans/src/backend/headers_tests.rs+++ b/crates/openhuman-tinyhumans/src/backend/headers_tests.rs@@ -25,7 +25,9 @@ fn attribution_headers_carry_the_core_version_and_default_identity() {sanitize_client_version(env!("CARGO_PKG_VERSION")).as_deref());assert_eq!(- headers.get(PRODUCT_IDENTITY_HEADER).and_then(|v| v.to_str().ok()),+ headers+ .get(PRODUCT_IDENTITY_HEADER)+ .and_then(|v| v.to_str().ok()),Some(DEFAULT_PRODUCT_IDENTITY));}diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rsindex 1b566f888d..a90af90964 100644--- a/tests/config_auth_app_state_connectivity_e2e.rs+++ b/tests/config_auth_app_state_connectivity_e2e.rs@@ -17,12 +17,6 @@ use reqwest::StatusCode;use serde_json::{json, Value};use tempfile::{tempdir, TempDir};-use openhuman_tinyhumans::backend::url::{- api_base_from_env, app_env_from_env, default_api_base_url_for_env, effective_api_url,- effective_backend_api_url, effective_inference_url, join_url as api_url,- looks_like_local_ai_endpoint, normalize_api_base_url, APP_ENV_VAR, DEFAULT_API_BASE_URL,- DEFAULT_STAGING_API_BASE_URL, OPENHUMAN_INFERENCE_PATH, VITE_APP_ENV_VAR,-};use openhuman_core::config::schema::{generate_provider_id, generate_voice_provider_id, is_slug_reserved, is_voice_slug_reserved,migrate_legacy_fields, AuditConfig, AuthStyle, CapabilityProviderConfig,@@ -60,6 +54,12 @@ use openhuman_core::security::credentials::{list_provider_credentials_by_prefix, normalize_provider, rpc_store_composio_api_key,store_composio_api_key, AuthService, APP_SESSION_PROVIDER, COMPOSIO_DIRECT_PROVIDER,};+use openhuman_tinyhumans::backend::url::{+ api_base_from_env, app_env_from_env, default_api_base_url_for_env, effective_api_url,+ effective_backend_api_url, effective_inference_url, join_url as api_url,+ looks_like_local_ai_endpoint, normalize_api_base_url, APP_ENV_VAR, DEFAULT_API_BASE_URL,+ DEFAULT_STAGING_API_BASE_URL, OPENHUMAN_INFERENCE_PATH, VITE_APP_ENV_VAR,+};use tinybus::EventHandler;const TEST_RPC_TOKEN: &str = "worker-a-domain-e2e-token";