Skip to content

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

fix(test): move test files to correct module location

Steven Enamakel9ab1c1c49937
diff --git a/crates/openhuman-core/src/core/core_mod_tests.rs b/crates/openhuman-core/src/core/core_mod_tests.rs
index b912c77684..f05087371c 100644
--- a/crates/openhuman-core/src/core/core_mod_tests.rs
+++ b/crates/openhuman-core/src/core/core_mod_tests.rs
@@ -34,59 +34,6 @@ fn method_name_preserves_underscores_in_function() {
assert_eq!(s.method_name(), "team.change_member_role");
}
-#[test]
-fn controller_schema_equality_considers_all_fields() {
- let a = ControllerSchema {
- namespace: "a",
- function: "b",
- description: "x",
- inputs: vec![],
- outputs: vec![],
- };
- let b = ControllerSchema {
- namespace: "a",
- function: "b",
- description: "x",
- inputs: vec![],
- outputs: vec![],
- };
- let c = ControllerSchema {
- namespace: "a",
- function: "b",
- description: "different",
- inputs: vec![],
- outputs: vec![],
- };
- assert_eq!(a, b);
- assert_ne!(a, c);
-}
-
-#[test]
-fn type_schema_nesting_is_equality_comparable() {
- let a = TypeSchema::Array(Box::new(TypeSchema::Option(Box::new(TypeSchema::String))));
- let b = TypeSchema::Array(Box::new(TypeSchema::Option(Box::new(TypeSchema::String))));
- let c = TypeSchema::Array(Box::new(TypeSchema::Option(Box::new(TypeSchema::I64))));
- assert_eq!(a, b);
- assert_ne!(a, c);
-}
-
-#[test]
-fn field_schema_required_flag_changes_equality() {
- let a = FieldSchema {
- name: "x",
- ty: TypeSchema::Bool,
- comment: "",
- required: true,
- };
- let b = FieldSchema {
- name: "x",
- ty: TypeSchema::Bool,
- comment: "",
- required: false,
- };
- assert_ne!(a, b);
-}
-
#[test]
fn controller_schema_serializes_to_json() {
// Schema must be JSON-serializable: the /schema endpoint depends on it.
diff --git a/crates/openhuman-core/src/core/types_tests.rs b/crates/openhuman-core/src/core/types_tests.rs
index e13b18ee08..b411d0a5f5 100644
--- a/crates/openhuman-core/src/core/types_tests.rs
+++ b/crates/openhuman-core/src/core/types_tests.rs
@@ -81,27 +81,6 @@ fn both_controller_return_paths_apply_the_same_log_envelope() {
}
}
-#[test]
-fn command_response_serde_roundtrip() {
- let resp = CommandResponse {
- result: "ok".to_string(),
- logs: vec!["log1".into()],
- };
- let json = serde_json::to_string(&resp).unwrap();
- let back: CommandResponse<String> = serde_json::from_str(&json).unwrap();
- assert_eq!(back.result, "ok");
- assert_eq!(back.logs.len(), 1);
-}
-
-#[test]
-fn app_state_clone() {
- let state = AppState {
- core_version: "0.1.0".into(),
- };
- let cloned = state.clone();
- assert_eq!(cloned.core_version, "0.1.0");
-}
-
#[test]
fn host_kind_tag_is_stable() {
// Downstream consumers (event-bus subscribers, log shippers) key