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(all): update tests to use fixture models
Steven Enamakel8fe1629cf49c
diff --git a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rsindex 2d4c5209aa..85a5c95e39 100644--- a/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs+++ b/crates/openhuman-core/src/agent/session_host/typed_transcript_compat_tests.rs@@ -85,6 +85,7 @@ fn build_live_image_host(config.modules.enabled = false;let mut host = crate::agent::SessionHostBuilder::new().with_session_history_locator(super::transcript_compat_tests::store_locator(root))+ .model_name("fixture/live-image-model".to_string()).chat_model_with_config(model, std::sync::Arc::new(config)).tools(Vec::new()).tool_dispatcher(Box::new(tinytools_agent::dialect::NativeDialect))diff --git a/crates/openhuman-core/src/platform/cost/route_tests.rs b/crates/openhuman-core/src/platform/cost/route_tests.rsindex 66dbabe5d6..3d96193f07 100644--- a/crates/openhuman-core/src/platform/cost/route_tests.rs+++ b/crates/openhuman-core/src/platform/cost/route_tests.rs@@ -81,10 +81,11 @@ fn byok_and_local_models_are_not_managed() {#[test]fn normalizes_case_whitespace_and_prefixes() {- assert_eq!(route_for_model(" HINT:CHAT "), CostRoute::Managed);- assert_eq!(route_for_model("hint:chat"), CostRoute::Managed);+ crate::agent::session_host::test_support::install_model_fixture();+ assert_eq!(route_for_model(" FIXTURE-REASONING "), CostRoute::Managed);+ assert_eq!(route_for_model("fixture-reasoning"), CostRoute::Managed);assert_eq!(- route_for_model("openhuman/hint:reasoning"),+ route_for_model("openhuman/fixture-reasoning"),CostRoute::Managed);}diff --git a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rsindex aaae5f45ae..82e9d4ec26 100644--- a/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs+++ b/crates/openhuman-core/src/web_chat/web_tests_session_and_concurrency_tests.rs@@ -23,6 +23,7 @@ fn fingerprint_provider_binding_variants_differ() {#[test]fn provider_role_override_routes_hint_workloads() {+ crate::agent::session_host::test_support::install_model_fixture();assert_eq!(provider_role_for_model_override(Some("hint:agentic")),"agentic"@@ -51,6 +52,10 @@ fn provider_role_override_routes_hint_workloads() {"chat");assert_eq!(provider_role_for_model_override(None), "chat");+ assert_eq!(+ provider_role_for_model_override(Some("fixture-reasoning")),+ "reasoning"+ );}#[test]diff --git a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rsindex 69e5fc5400..5f40bb6c73 100644--- a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs@@ -170,7 +170,7 @@ fn hosted_cost_defaults_include_the_registered_managed_model_price() {let _registry = crate::registry_test_lock();crate::register::register_all(&crate::install::InstallOptions::default());- let prices = openhuman_embed::__host::config::schema::CostConfig::default().prices;+ let prices = openhuman_embed::__host::config::Config::default().cost.prices;let expected = super::super::tiers::default_pricing().expect("hosted default pricing");assert_eq!(expected.0, MODEL_MANAGED_DEFAULT);let actual = prices