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: remove redundant schema count and matching tests
Steven Enamakelf7a89cde1dc5
diff --git a/crates/openhuman-core/src/platform/doctor/schemas_tests.rs b/crates/openhuman-core/src/platform/doctor/schemas_tests.rsindex 3a8e21e5eb..16c13e630e 100644--- a/crates/openhuman-core/src/platform/doctor/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/doctor/schemas_tests.rs@@ -1,15 +1,5 @@use super::*;-#[test]-fn all_schemas_returns_two() {- assert_eq!(all_controller_schemas().len(), 2);-}--#[test]-fn all_controllers_returns_two() {- assert_eq!(all_registered_controllers().len(), 2);-}-#[test]fn report_schema() {let s = schemas("report");@@ -26,15 +16,6 @@ fn models_schema_has_optional_use_cache() {assert!(use_cache.is_some_and(|f| !f.required));}-#[test]-fn schemas_and_controllers_match() {- let s = all_controller_schemas();- let c = all_registered_controllers();- for (schema, ctrl) in s.iter().zip(c.iter()) {- assert_eq!(schema.function, ctrl.schema.function);- }-}-#[test]fn read_optional_returns_none_for_missing() {let m = Map::new();diff --git a/crates/openhuman-core/src/platform/health/schemas_tests.rs b/crates/openhuman-core/src/platform/health/schemas_tests.rsindex d38542956f..bbcfb27fb3 100644--- a/crates/openhuman-core/src/platform/health/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/health/schemas_tests.rs@@ -1,16 +1,6 @@use super::*;use crate::core::runtime::DispatchCtx;-#[test]-fn all_schemas_returns_two() {- assert_eq!(all_controller_schemas().len(), 2);-}--#[test]-fn all_controllers_returns_two() {- assert_eq!(all_registered_controllers().len(), 2);-}-#[test]fn snapshot_schema() {let s = schemas("snapshot");@@ -30,16 +20,6 @@ fn system_info_schema() {assert_eq!(s.outputs.len(), 4);}-#[test]-fn schemas_and_controllers_match() {- let s = all_controller_schemas();- let c = all_registered_controllers();- assert_eq!(s.len(), c.len());- for (schema, controller) in s.iter().zip(c.iter()) {- assert_eq!(schema.function, controller.schema.function);- }-}-#[tokio::test]async fn handle_snapshot_returns_json_object() {let result = handle_snapshot(DispatchCtx::process_default(), Map::new()).await;diff --git a/crates/openhuman-core/src/platform/service/schemas_tests.rs b/crates/openhuman-core/src/platform/service/schemas_tests.rsindex 7f0a34c558..a0566b1f97 100644--- a/crates/openhuman-core/src/platform/service/schemas_tests.rs+++ b/crates/openhuman-core/src/platform/service/schemas_tests.rs@@ -1,23 +1,5 @@use super::*;-#[test]-fn all_schemas_returns_nine() {- assert_eq!(all_controller_schemas().len(), 9);-}--#[test]-fn all_controllers_returns_nine() {- assert_eq!(all_registered_controllers().len(), 9);-}--#[test]-fn all_schemas_use_service_namespace() {- for s in all_controller_schemas() {- assert_eq!(s.namespace, "service");- assert!(!s.description.is_empty());- }-}-#[test]fn lifecycle_schemas_have_no_inputs_except_self_signals() {for fn_name in ["install", "start", "stop", "status", "uninstall"] {@@ -60,16 +42,6 @@ fn daemon_host_set_requires_show_tray() {assert!(s.inputs[0].required);}-#[test]-fn schemas_and_controllers_match() {- let s = all_controller_schemas();- let c = all_registered_controllers();- assert_eq!(s.len(), c.len());- for (schema, ctrl) in s.iter().zip(c.iter()) {- assert_eq!(schema.function, ctrl.schema.function);- }-}-#[test]fn known_functions_resolve_correctly() {for fn_name in [