Skip to content

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

test: remove redundant schema namespace and count tests

Steven Enamakelc3ade1e6254d
diff --git a/crates/openhuman-core/src/inference/schemas_tests.rs b/crates/openhuman-core/src/inference/schemas_tests.rs
index 2e11e195ad..1792146a99 100644
--- a/crates/openhuman-core/src/inference/schemas_tests.rs
+++ b/crates/openhuman-core/src/inference/schemas_tests.rs
@@ -2,27 +2,6 @@ use super::*;
use crate::core::runtime::DispatchCtx;
use crate::core::TypeSchema;
-#[test]
-fn inference_catalog_counts_match_and_nonempty() {
- let declared = all_controller_schemas();
- let registered = all_registered_controllers();
- assert_eq!(declared.len(), registered.len());
- assert!(declared.len() >= 19);
-}
-
-#[test]
-fn inference_schemas_use_inference_namespace() {
- for schema in all_controller_schemas() {
- assert_eq!(
- schema.namespace, "inference",
- "function {}",
- schema.function
- );
- assert!(!schema.description.is_empty());
- assert!(!schema.outputs.is_empty());
- }
-}
-
#[test]
fn inference_schema_function_names_are_stable() {
let functions: Vec<&str> = all_controller_schemas()
diff --git a/crates/openhuman-core/src/sandbox/schemas_tests.rs b/crates/openhuman-core/src/sandbox/schemas_tests.rs
index 4e710396cf..dc0fe1d5cf 100644
--- a/crates/openhuman-core/src/sandbox/schemas_tests.rs
+++ b/crates/openhuman-core/src/sandbox/schemas_tests.rs
@@ -10,23 +10,6 @@ fn scoped_ctx(config: crate::config::Config) -> std::sync::Arc<CoreContext> {
CoreContext::for_test_with_config(DomainSet::full(), config)
}
-#[test]
-fn all_schemas_are_in_sandbox_namespace() {
- for schema in all_controller_schemas() {
- assert_eq!(schema.namespace, "sandbox");
- }
-}
-
-#[test]
-fn registered_controllers_match_schemas() {
- let schemas = all_controller_schemas();
- let controllers = all_registered_controllers();
- assert_eq!(schemas.len(), controllers.len());
- for (s, c) in schemas.iter().zip(controllers.iter()) {
- assert_eq!(s.function, c.schema.function);
- }
-}
-
#[tokio::test]
async fn handle_status_returns_json() {
let ctx = scoped_ctx(crate::config::Config::default());