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(cost): update cost related tests
Steven Enamakel3a7d91927f7d
diff --git a/crates/openhuman-core/src/config/schema/identity_cost_tests.rs b/crates/openhuman-core/src/config/schema/identity_cost_tests.rsindex e26cfd7896..8d5ccdade5 100644--- a/crates/openhuman-core/src/config/schema/identity_cost_tests.rs+++ b/crates/openhuman-core/src/config/schema/identity_cost_tests.rs@@ -37,12 +37,7 @@ fn cost_dashboard_config_serde_roundtrip() {#[test]fn cost_config_default_pricing_has_known_models() {let c = CostConfig::default();- assert!(- c.prices- .contains_key("openrouter/deepseek/deepseek-v4-flash"),- "default pricing must cover the managed default model; got {:?}",- c.prices.keys().collect::<Vec<_>>()- );+ assert!(c.prices.is_empty(), "bare core has no provider-owned price catalog");}#[test]diff --git a/crates/openhuman-core/src/platform/cost/route_tests.rs b/crates/openhuman-core/src/platform/cost/route_tests.rsindex 31fa98c43e..a3c865063c 100644--- a/crates/openhuman-core/src/platform/cost/route_tests.rs+++ b/crates/openhuman-core/src/platform/cost/route_tests.rs@@ -33,8 +33,6 @@ fn decorations_do_not_promote_a_byok_model_to_managed() {}}-use crate::config::{["chat-v1", "reasoning-v1", "agentic-v1", "burst-v1", "coding-v1", "vision-v1", "summarization-v1"], "openrouter/deepseek/deepseek-v4-flash"};-/// The managed default is an `openrouter/...` passthrough id and bills as/// managed like every other catalog model the backend serves.#[test]@@ -43,27 +41,10 @@ fn managed_default_model_is_managed() {}#[test]-fn managed_tier_slugs_are_managed() {- for slug in MANAGED_MODEL_SLUGS {- assert_eq!(- route_for_model(slug),- CostRoute::Managed,- "tier slug {slug} must bill as managed"- );- }-}--/// The retired slug list is the config's own legacy table, so an old cost-/// record carrying any of them still counts toward the managed budget.-#[test]-fn managed_tier_slugs_stay_in_sync() {+fn retired_provider_aliases_need_a_registered_provider_policy() {for tier in ["chat-v1", "reasoning-v1", "agentic-v1", "burst-v1", "coding-v1", "vision-v1", "summarization-v1"] {- assert!(- MANAGED_MODEL_SLUGS.contains(&tier),- "retired tier {tier} is not classified as managed"- );+ assert_eq!(route_for_model(tier), CostRoute::Byok);}- assert_eq!(MANAGED_MODEL_SLUGS.len(), ["chat-v1", "reasoning-v1", "agentic-v1", "burst-v1", "coding-v1", "vision-v1", "summarization-v1"].len());}#[test]