Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(core,voice): add legacy voice catalog contract test

Steven Enamakel2490c7800a36
diff --git a/crates/openhuman-core/src/core/all_schema_contract_tests.rs b/crates/openhuman-core/src/core/all_schema_contract_tests.rs
index 72c8c51ca6..2dcdf33af2 100644
--- a/crates/openhuman-core/src/core/all_schema_contract_tests.rs
+++ b/crates/openhuman-core/src/core/all_schema_contract_tests.rs
@@ -160,8 +160,7 @@ fn representative_parameter_contracts() -> (Vec<RegisteredController>, Vec<Contr
let controllers = builtin_controller_snapshot()
.into_iter()
.filter(|controller| {
- (cfg!(feature = "mcp")
- && controller.schema.method_name() == "mcp_clients.registry_get")
+ (cfg!(feature = "mcp") && controller.schema.method_name() == "mcp_clients.registry_get")
|| (cfg!(feature = "modules")
&& controller.schema.method_name() == "modules.computer_status")
})
diff --git a/crates/openhuman-core/src/voice/schemas_tests.rs b/crates/openhuman-core/src/voice/schemas_tests.rs
index c75e459e16..1ddd25b207 100644
--- a/crates/openhuman-core/src/voice/schemas_tests.rs
+++ b/crates/openhuman-core/src/voice/schemas_tests.rs
@@ -5,6 +5,15 @@ use crate::core::all::{
};
use serde_json::json;
+#[test]
+fn legacy_voice_catalog_keeps_its_handler_and_example_contracts() {
+ crate::core::all::verify_parameter_contracts(
+ &all_voice_registered_controllers(),
+ &super::parameter_contracts(),
+ )
+ .unwrap();
+}
+
#[test]
fn voice_schema_wire_contracts_are_preserved() {
let identities = [