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
test(config): update config loading tests
Steven Enamakelabb6a06c422d
diff --git a/crates/openhuman-core/src/config/schema/load_active_user_and_dirs_tests.rs b/crates/openhuman-core/src/config/schema/load_active_user_and_dirs_tests.rsindex 7c1a781b6e..6585f55196 100644--- a/crates/openhuman-core/src/config/schema/load_active_user_and_dirs_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_active_user_and_dirs_tests.rs@@ -321,7 +321,7 @@ fn apply_env_overrides_shell_hide_window_parses_truthy_falsy() {#[test]fn classify_shell_hide_window_distinguishes_unset_from_unrecognized() {- use super::super::env_overlay::{ShellHideWindowParse as P, classify_shell_hide_window};+ use super::super::env_overlay::{classify_shell_hide_window, ShellHideWindowParse as P};// The key distinction the change relies on: an empty / whitespace-only value// is `Unset` (silent no-op), NOT `Unrecognized` (which warns on every boot).// Testing the classifier directly proves this — the field-unchanged assertiondiff --git a/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs b/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rsindex b7b7bf9e3c..d3b863c6b6 100644--- a/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_env_overlay_tests.rs@@ -101,12 +101,11 @@ fn env_overlay_output_language_accepts_non_empty_value() {cfg.apply_env_overlay_with(&HashMapEnv::new().with("OPENHUMAN_OUTPUT_LANGUAGE", "zh-CN"));assert_eq!(cfg.output_language.as_deref(), Some("zh-CN"));- assert!(- cfg.output_language_directive()- .as_deref()- .unwrap_or_default()- .contains("Simplified Chinese")- );+ assert!(cfg+ .output_language_directive()+ .as_deref()+ .unwrap_or_default()+ .contains("Simplified Chinese"));cfg.apply_env_overlay_with(&HashMapEnv::new().with("OPENHUMAN_OUTPUT_LANGUAGE", " "));assert_eq!(diff --git a/crates/openhuman-core/src/config/schema/load_migration_tests.rs b/crates/openhuman-core/src/config/schema/load_migration_tests.rsindex 6e1d417876..b9c8097ec1 100644--- a/crates/openhuman-core/src/config/schema/load_migration_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_migration_tests.rs@@ -212,12 +212,10 @@ backend = "sqlite".unwrap();assert!(saved.contains("engine = \"\""));let saved_config: toml::Value = toml::from_str(&saved).unwrap();- assert!(- !saved_config["memory"]- .as_table()- .unwrap()- .contains_key("backend")- );+ assert!(!saved_config["memory"]+ .as_table()+ .unwrap()+ .contains_key("backend"));let reloaded = load_or_init_for_workspace(tmp.path()).await;