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
fix(tests): correct test module paths after restructuring
Steven Enamakelea791668d9c9
diff --git a/crates/openhuman-core/src/modules/boot_tests.rs b/crates/openhuman-core/src/modules/boot_tests.rsindex e6c5de2209..92fe291094 100644--- a/crates/openhuman-core/src/modules/boot_tests.rs+++ b/crates/openhuman-core/src/modules/boot_tests.rs@@ -1,44 +1,6 @@-use super::{load_declared_modules, should_eager_load};+use super::load_declared_modules;use crate::config::Config;-#[test]-fn tinymemory_is_not_eager_when_memory_is_disabled() {- let mut config = Config::default();- config.subsystems.memory.driver = "null".to_string();- let record = super::registry::find(super::super::memory::MODULE_ID)- .expect("tinymemory is a registered module");- assert!(!should_eager_load(record, &config));-}--#[test]-fn tinymemory_is_eager_for_the_default_module_driver() {- let mut config = Config::default();- // The legacy persisted id aliases to the TinyMemory module until the- // shared API changes its default string.- config.subsystems.memory.driver = "tinycortex".to_string();- let record = super::registry::find(super::super::memory::MODULE_ID)- .expect("tinymemory is a registered module");- assert!(should_eager_load(record, &config));-}--#[test]-fn other_eager_records_are_unconditional() {- // Non-memory eager records (today, none — but the rule must not- // silently start gating an unrelated module the moment one is added- // and marked `Eager`) are unaffected by the memory driver selection.- let config = Config::default();- for record in super::registry::ALL {- if record.id == super::super::memory::MODULE_ID {- continue;- }- assert!(- should_eager_load(record, &config),- "record '{}' should be unconditionally eager-eligible",- record.id- );- }-}-#[tokio::test]async fn boot_is_a_no_op_when_modules_are_disabled() {// Must not start a broker as a side effect of being switched off.diff --git a/crates/openhuman-core/src/modules/ops_tests.rs b/crates/openhuman-core/src/modules/ops_tests.rsindex ea34d83d72..61b48b33ff 100644--- a/crates/openhuman-core/src/modules/ops_tests.rs+++ b/crates/openhuman-core/src/modules/ops_tests.rs@@ -222,40 +222,6 @@ fn errors_never_leak_a_path_or_a_url() {}}-#[test]-fn module_config_hands_the_module_the_hosts_cloud_embedding_defaults() {- // `cloud_embedding_model` is what the module's engine falls back to when- // the opted-in local model is unreachable, so it must be the host's- // managed-cloud default, never the user's intended (usually local) model.- // Sending `config.memory.embedding_model` here made the fallback ask the- // managed embedder for `nomic-embed-text` (#5820).- let mut config = offline_config();- config.memory.embedding_model = "nomic-embed-text:latest".to_string();- config.memory.embedding_dimensions = 768;-- let sent = ops::module_config(&config, crate::modules::memory::MODULE_ID);-- assert_eq!(- sent["cloud_embedding_model"],- tinyinference_embeddings::DEFAULT_CLOUD_MODEL- );- assert_eq!(- sent["cloud_embedding_dimensions"],- tinyinference_embeddings::DEFAULT_CLOUD_DIMENSIONS- );- let supports = sent["models_supporting_dimensions"]- .as_array()- .expect("a list of model ids");- assert!(- supports- .iter()- .any(|model| model == "text-embedding-3-large"),- "the dimension-aware family is named: {supports:?}"- );- // The user's own model still travels, just not as the cloud fallback.- assert_eq!(sent["memory"]["embedding_model"], "nomic-embed-text:latest");-}-#[tokio::test]async fn a_bounded_wait_with_nothing_cached_and_downloads_off_fails_rather_than_loading() {// An isolated install directory: this machine's real cache may hold thediff --git a/crates/openhuman-core/src/security/credentials/ops_tests.rs b/crates/openhuman-core/src/security/credentials/ops_tests.rsindex 82e6f95cc4..152bcbeb17 100644--- a/crates/openhuman-core/src/security/credentials/ops_tests.rs+++ b/crates/openhuman-core/src/security/credentials/ops_tests.rs@@ -21,17 +21,6 @@ fn test_config(tmp: &TempDir) -> Config {config_path: tmp.path().join("config.toml"),..Config::default()};- // Storing a session asks the memory driver to re-embed, and resolving a- // driver that nothing has installed means attempting to load the compiled- // module — which a unit test cannot do, but takes seconds to fail at.- // These are credentials tests; binding is not what they are about, and one- // of them asserts a latency budget that the attempt blows straight through.- crate::memory::binding::install_diagnostics_for_test(- &config.workspace_dir,- &config.subsystems.memory,- Default::default(),- Default::default(),- );config}