Skip to content

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

test(schemas): remove redundant schema shape tests

Steven Enamakele7d8902d5d91
diff --git a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
index 37eca93fcb..020646ee12 100644
--- a/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
+++ b/crates/openhuman-core/src/core/subsystem/schemas_tests.rs
@@ -1,27 +1,6 @@
use super::*;
use crate::core::runtime::DispatchCtx;
-#[test]
-fn status_schema_shape() {
- let schema = schemas("status");
- assert_eq!(schema.namespace, "subsystems");
- assert_eq!(schema.function, "status");
- assert!(schema.inputs.is_empty());
- assert_eq!(schema.outputs.len(), 1);
- assert_eq!(schema.outputs[0].name, "subsystems");
-}
-
-#[test]
-fn schemas_and_controllers_line_up() {
- let schemas = all_controller_schemas();
- let controllers = all_registered_controllers();
- assert_eq!(schemas.len(), controllers.len());
- for (schema, controller) in schemas.iter().zip(controllers.iter()) {
- assert_eq!(schema.namespace, controller.schema.namespace);
- assert_eq!(schema.function, controller.schema.function);
- }
-}
-
#[tokio::test]
async fn handler_returns_a_subsystems_array_containing_the_memory_slot() {
// The handler loads the process-default config, which reads the workspace
diff --git a/crates/openhuman-core/src/modules/schemas_tests.rs b/crates/openhuman-core/src/modules/schemas_tests.rs
index 58fe13c640..35c4cd0d34 100644
--- a/crates/openhuman-core/src/modules/schemas_tests.rs
+++ b/crates/openhuman-core/src/modules/schemas_tests.rs
@@ -6,17 +6,6 @@ use crate::core::runtime::DispatchCtx;
use crate::core::runtime::DomainSet;
use serde_json::{Map, Value};
-#[test]
-fn every_schema_is_in_the_modules_namespace() {
- for schema in all_controller_schemas() {
- assert_eq!(schema.namespace, "modules");
- assert_ne!(
- schema.function, "unknown",
- "an advertised function fell through to the unknown arm"
- );
- }
-}
-
#[test]
fn registered_controllers_match_the_advertised_schemas() {
// Two lists that must agree: one drives `/schema`, the other dispatch.