Skip to content

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

chore: remove redundant schema test files

Steven Enamakel86969f29b951
diff --git a/crates/openhuman-core/src/config/migration_helpers/schemas_tests.rs b/crates/openhuman-core/src/config/migration_helpers/schemas_tests.rs
index ef355e7ff2..4c4699458b 100644
--- a/crates/openhuman-core/src/config/migration_helpers/schemas_tests.rs
+++ b/crates/openhuman-core/src/config/migration_helpers/schemas_tests.rs
@@ -32,14 +32,6 @@ fn openclaw_schema_describes_optional_source_and_dry_run() {
assert_eq!(s.outputs[0].name, "report");
}
-#[test]
-fn unknown_function_returns_unknown_placeholder() {
- let s = schemas("bogus");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.namespace, "migrate");
- assert_eq!(s.outputs[0].name, "error");
-}
-
#[test]
fn migrate_openclaw_params_tolerates_empty_object() {
let params: MigrateOpenClawParams = serde_json::from_value(json!({})).unwrap();
diff --git a/crates/openhuman-core/src/config/schemas_tests.rs b/crates/openhuman-core/src/config/schemas_tests.rs
index c2d02233ef..eb23573626 100644
--- a/crates/openhuman-core/src/config/schemas_tests.rs
+++ b/crates/openhuman-core/src/config/schemas_tests.rs
@@ -10,13 +10,6 @@ fn all_schemas_use_config_namespace_and_have_descriptions() {
}
}
-#[test]
-fn unknown_function_returns_unknown_schema() {
- let s = schemas("no_such_fn");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.namespace, "config");
-}
-
#[test]
fn every_registered_key_resolves_to_non_unknown_schema() {
let keys = [
diff --git a/crates/openhuman-core/src/config/workspace/schemas_tests.rs b/crates/openhuman-core/src/config/workspace/schemas_tests.rs
index 0f1ecfc3ac..03d470ad0e 100644
--- a/crates/openhuman-core/src/config/workspace/schemas_tests.rs
+++ b/crates/openhuman-core/src/config/workspace/schemas_tests.rs
@@ -1,14 +1,5 @@
use super::*;
-#[test]
-fn all_schemas_use_workspace_namespace() {
- let all = all_controller_schemas();
- assert_eq!(all.len(), 3);
- for schema in &all {
- assert_eq!(schema.namespace, "workspace");
- }
-}
-
#[test]
fn registered_controllers_expose_expected_rpc_methods() {
let methods: Vec<String> = all_registered_controllers()
@@ -28,8 +19,3 @@ fn file_write_schema_requires_filename_and_contents() {
assert!(input_names.contains(&"contents"));
}
-#[test]
-fn unknown_function_yields_unknown_schema() {
- let schema = schemas("nope");
- assert_eq!(schema.function, "unknown");
-}
diff --git a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
index 7a1ce5d7d5..3568451a08 100644
--- a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
+++ b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
@@ -10,11 +10,6 @@ fn status_schema_shape() {
assert_eq!(schema.outputs[0].name, "subsystems");
}
-#[test]
-fn unknown_function_returns_the_unknown_schema() {
- assert_eq!(schemas("not_real").function, "unknown");
-}
-
#[test]
fn schemas_and_controllers_line_up() {
let schemas = all_controller_schemas();
diff --git a/crates/openhuman-core/src/cron/schemas_tests.rs b/crates/openhuman-core/src/cron/schemas_tests.rs
index 821dacc09e..f8a685f9d2 100644
--- a/crates/openhuman-core/src/cron/schemas_tests.rs
+++ b/crates/openhuman-core/src/cron/schemas_tests.rs
@@ -68,15 +68,6 @@ fn schemas_runs_limit_is_optional() {
assert!(!limit.required);
}
-#[test]
-fn schemas_unknown_function_returns_placeholder_with_error_output() {
- // The `_other` branch is used when a caller requests a schema
- // for a function that does not exist — it should not panic.
- let s = schemas("does-not-exist");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.outputs[0].name, "error");
-}
-
// ── registry helpers ────────────────────────────────────────────
#[test]
diff --git a/crates/openhuman-core/src/flows/schemas_tests.rs b/crates/openhuman-core/src/flows/schemas_tests.rs
index d46da0a25d..d8cdcf2cc9 100644
--- a/crates/openhuman-core/src/flows/schemas_tests.rs
+++ b/crates/openhuman-core/src/flows/schemas_tests.rs
@@ -324,13 +324,6 @@ fn read_flow_stream_target_generates_request_id_when_absent() {
assert_ne!(target.request_id, target.thread_id);
}
-#[test]
-fn schemas_unknown_function_returns_placeholder() {
- let s = schemas("does-not-exist");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.outputs[0].name, "error");
-}
-
#[test]
fn read_required_errors_when_missing() {
let params = Map::new();
diff --git a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs b/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
index edebea407f..c2271b6003 100644
--- a/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
+++ b/crates/openhuman-core/src/integrations/composio/schemas_tests.rs
@@ -49,14 +49,6 @@ fn list_capabilities_schema_has_matrix_output() {
.any(|f| f.name == "capabilities" && f.required));
}
-#[test]
-fn unknown_function_returns_unknown_schema() {
- let s = schemas("no_such_fn");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.inputs.len(), 1);
- assert_eq!(s.inputs[0].name, "function");
-}
-
#[test]
fn authorize_schema_requires_toolkit() {
let s = schemas("authorize");
diff --git a/crates/openhuman-core/src/integrations/task_sources/schemas_tests.rs b/crates/openhuman-core/src/integrations/task_sources/schemas_tests.rs
index e6082cae3d..1dd27f7b6d 100644
--- a/crates/openhuman-core/src/integrations/task_sources/schemas_tests.rs
+++ b/crates/openhuman-core/src/integrations/task_sources/schemas_tests.rs
@@ -44,13 +44,6 @@ fn schemas_add_requires_provider_and_filter() {
assert!(provider.required);
}
-#[test]
-fn schemas_unknown_function_returns_placeholder() {
- let s = schemas("nope");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.outputs[0].name, "error");
-}
-
#[test]
fn read_provider_parses_known_and_rejects_unknown() {
let mut params = Map::new();
diff --git a/crates/openhuman-core/src/mcp/registry/schemas_tests.rs b/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
index f030a6d233..3e5ba81d60 100644
--- a/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
+++ b/crates/openhuman-core/src/mcp/registry/schemas_tests.rs
@@ -60,13 +60,6 @@ fn schemas_tool_call_requires_three_fields() {
assert_eq!(required.len(), 3);
}
-#[test]
-fn schemas_unknown_function_returns_placeholder() {
- let s = schemas("not-a-real-function");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.outputs[0].name, "error");
-}
-
// ── all_controller_schemas / all_registered_controllers ────────────────────
#[test]
diff --git a/crates/openhuman-core/src/security/credentials/schemas_tests.rs b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
index 7668e66c3f..b76421699c 100644
--- a/crates/openhuman-core/src/security/credentials/schemas_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
@@ -15,13 +15,6 @@ fn all_schemas_use_auth_namespace_and_have_descriptions() {
}
}
-#[test]
-fn unknown_function_returns_unknown_fallback() {
- let s = schemas("no_such_fn");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.namespace, "auth");
-}
-
#[test]
fn every_registered_function_has_nonempty_schema_metadata() {
for handler in all_registered_controllers() {
diff --git a/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs b/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs
index a23ffff1c5..fd48515d20 100644
--- a/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs
+++ b/crates/openhuman-core/src/skills/webhooks/schemas_tests.rs
@@ -159,17 +159,6 @@ fn trigger_agent_requires_caller_id_only() {
}
}
-#[test]
-fn unknown_function_returns_error_fallback_schema() {
- let s = schemas("no_such_fn");
- assert_eq!(s.function, "unknown");
- assert_eq!(s.namespace, "webhooks");
- assert_eq!(s.outputs.len(), 1);
- assert_eq!(s.outputs[0].name, "error");
- assert!(matches!(s.outputs[0].ty, TypeSchema::String));
- assert!(s.outputs[0].required);
-}
-
// ── deserialize_params ────────────────────────────────────────
#[test]
diff --git a/crates/openhuman-core/src/tools/schemas_tests.rs b/crates/openhuman-core/src/tools/schemas_tests.rs
index d7089db0c3..59d16e3cf2 100644
--- a/crates/openhuman-core/src/tools/schemas_tests.rs
+++ b/crates/openhuman-core/src/tools/schemas_tests.rs
@@ -79,8 +79,3 @@ fn web_search_schema_shape() {
assert!(s.outputs.iter().any(|f| f.name == "provider"));
}
-#[test]
-fn unknown_function_returns_unknown() {
- let s = tools_schemas("nonexistent");
- assert_eq!(s.function, "unknown");
-}
diff --git a/crates/openhuman-core/src/web3/wallet/schemas_tests.rs b/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
index 7a17c688ac..fb9ffe7b0c 100644
--- a/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
+++ b/crates/openhuman-core/src/web3/wallet/schemas_tests.rs
@@ -68,8 +68,3 @@ fn prepare_transfer_schema_marks_asset_symbol_optional() {
assert!(!asset.required);
}
-#[test]
-fn unknown_schema_maps_to_unknown() {
- let schema = wallet_schemas("wat");
- assert_eq!(schema.function, "unknown");
-}