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(tinyhumans): add coverage for enricher, embedding, runtime, and voice paths
Steven Enamakel11a541bac6b4
diff --git a/crates/openhuman-tinyhumans/src/client/enricher_tests.rs b/crates/openhuman-tinyhumans/src/client/enricher_tests.rsindex 3749bff3f0..5047e3f4a7 100644--- a/crates/openhuman-tinyhumans/src/client/enricher_tests.rs+++ b/crates/openhuman-tinyhumans/src/client/enricher_tests.rs@@ -2,9 +2,10 @@ use super::*;use openhuman_embed::__host::config_enrichers::run_enrichers;fn config_with(api_url: Option<&str>) -> Config {- let mut config = Config::default();- config.api_url = api_url.map(str::to_string);- config+ Config {+ api_url: api_url.map(str::to_string),+ ..Config::default()+ }}#[test]diff --git a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rsindex 272b8722af..399196b6e1 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_embedding_tests.rs@@ -5,9 +5,10 @@ use std::collections::HashMap;use tinyinference_embeddings::{DEFAULT_CLOUD_DIMENSIONS, DEFAULT_CLOUD_MODEL};fn test_config(tmp: &tempfile::TempDir) -> Config {- let mut config = Config::default();- config.config_path = tmp.path().join("config.toml");- config+ Config {+ config_path: tmp.path().join("config.toml"),+ ..Config::default()+ }}fn state_dir_of(config: &Config) -> std::path::PathBuf {diff --git a/crates/openhuman-tinyhumans/src/runtime_tests.rs b/crates/openhuman-tinyhumans/src/runtime_tests.rsindex fdbffbbe54..498ab9ecdf 100644--- a/crates/openhuman-tinyhumans/src/runtime_tests.rs+++ b/crates/openhuman-tinyhumans/src/runtime_tests.rs@@ -40,6 +40,10 @@ fn deferred_builder_connects_through_tinyhumans_wrapper() {let _registry = crate::registry_test_lock();let summary = connected(RuntimeBuilder::new().defer_services());+ assert!(+ !summary.controller_extensions.is_empty(),+ "deferring services still connects the hosted controllers"+ );}#[test]diff --git a/crates/openhuman-tinyhumans/src/voice/live_tests.rs b/crates/openhuman-tinyhumans/src/voice/live_tests.rsindex 07c9c339b3..b039f5be58 100644--- a/crates/openhuman-tinyhumans/src/voice/live_tests.rs+++ b/crates/openhuman-tinyhumans/src/voice/live_tests.rs@@ -91,9 +91,11 @@ fn hosted_providers_are_listed_ahead_of_the_built_in_ones() {#[tokio::test]async fn hosted_providers_report_not_configured_without_a_backend_credential() {let dir = tempfile::tempdir().unwrap();- let mut config = Config::default();- config.workspace_dir = dir.path().to_path_buf();- config.config_path = dir.path().join("config.toml");+ let config = Config {+ workspace_dir: dir.path().to_path_buf(),+ config_path: dir.path().join("config.toml"),+ ..Config::default()+ };assert!(!backend_ready(&config));let err = prepare_gemini(config, LiveConfig::new()).awaitdiff --git a/crates/openhuman-tinyhumans/src/voice/realtime_tests.rs b/crates/openhuman-tinyhumans/src/voice/realtime_tests.rsindex 01361a687e..2d39d760bc 100644--- a/crates/openhuman-tinyhumans/src/voice/realtime_tests.rs+++ b/crates/openhuman-tinyhumans/src/voice/realtime_tests.rs@@ -99,10 +99,12 @@ async fn mint_signed_url_authenticates_with_the_api_key() {tokio::spawn(async move { axum::serve(listener, app).await.unwrap() });let dir = tempfile::tempdir().unwrap();- let mut config = Config::default();- config.workspace_dir = dir.path().join("workspace");- config.config_path = dir.path().join("config.toml");- config.api_url = Some(format!("http://{addr}"));+ let config = Config {+ workspace_dir: dir.path().join("workspace"),+ config_path: dir.path().join("config.toml"),+ api_url: Some(format!("http://{addr}")),+ ..Config::default()+ };openhuman_embed::__host::security::credentials::api_key::store_api_key(&config,"tiny_test_voice",