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: update contract schema and credentials tests for moved controllers
Steven Enamakelac5e9e3b7638
diff --git a/crates/openhuman-core/src/channels/contract_schema_tests.rs b/crates/openhuman-core/src/channels/contract_schema_tests.rsindex 1e463d3656..abc9838ad0 100644--- a/crates/openhuman-core/src/channels/contract_schema_tests.rs+++ b/crates/openhuman-core/src/channels/contract_schema_tests.rs@@ -9,9 +9,11 @@ fn converts_the_contract_schema_with_optional_types() {assert!(token.required);assert!(matches!(token.ty, TypeSchema::String));- let status = contract_controller_schema("status");- assert!(status- .inputs- .iter()- .any(|f| !f.required && matches!(f.ty, TypeSchema::Option(_))));+ let threads = contract_controller_schema("list_threads");+ let active = threads.inputs.iter().find(|f| f.name == "active").unwrap();+ assert!(!active.required);+ assert!(matches!(+ &active.ty,+ TypeSchema::Option(inner) if matches!(inner.as_ref(), TypeSchema::Bool)+ ));}diff --git a/crates/openhuman-core/src/security/credentials/schemas_tests.rs b/crates/openhuman-core/src/security/credentials/schemas_tests.rsindex 40510b308a..06d43227ea 100644--- a/crates/openhuman-core/src/security/credentials/schemas_tests.rs+++ b/crates/openhuman-core/src/security/credentials/schemas_tests.rs@@ -7,7 +7,9 @@ fn catalog_counts_match() {let schemas = all_controller_schemas();let handlers = all_registered_controllers();assert_eq!(schemas.len(), handlers.len());- assert!(schemas.len() >= 13, "auth namespace should expose ≥13 fns");+ // The account-bound `auth.oauth_*` / `auth.create_channel_link_token`+ // controllers moved to `openhuman-tinyhumans`; the core keeps the rest.+ assert!(schemas.len() >= 8, "auth namespace should expose ≥8 core fns");}#[test]