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: reorder module declarations and apply rustfmt to test files
Steven Enamakelca9f3194f834
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rsindex 30ba29b768..eaeef1a387 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs@@ -370,14 +370,14 @@ mod command_exit_failure_tests;mod failure_effect_tests;#[path = "middleware_failure_policy_class_tests.rs"]mod failure_policy_class_tests;-#[path = "middleware_terminal_inference_halt_tests.rs"]-mod terminal_inference_halt_tests;#[path = "middleware_loop_guard_tests.rs"]mod loop_guard_tests;#[path = "middleware_memory_budget_tests.rs"]mod memory_budget_tests;#[path = "middleware_stop_cause_tests.rs"]mod stop_cause_tests;+#[path = "middleware_terminal_inference_halt_tests.rs"]+mod terminal_inference_halt_tests;#[path = "middleware_tool_output_artifact_tests.rs"]mod tool_output_artifact_tests;diff --git a/crates/openhuman-core/src/inference/provider/factory_local_only_endpoint_tests.rs b/crates/openhuman-core/src/inference/provider/factory_local_only_endpoint_tests.rsindex 20071775e7..b63d221050 100644--- a/crates/openhuman-core/src/inference/provider/factory_local_only_endpoint_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_local_only_endpoint_tests.rs@@ -176,8 +176,12 @@ async fn local_only_set_after_construction_refuses_a_remote_local_runtime_at_dislet invoked = model.invoke(&(), ModelRequest::new(Vec::new())).await;let streamed = model.stream(&(), ModelRequest::new(Vec::new())).await;for error in [- invoked.map(|_| ()).expect_err("invoke is refused before dispatch"),- streamed.map(|_| ()).expect_err("stream is refused before dispatch"),+ invoked+ .map(|_| ())+ .expect_err("invoke is refused before dispatch"),+ streamed+ .map(|_| ())+ .expect_err("stream is refused before dispatch"),] {assert!(error.to_string().contains("Local-only"), "{error}");}diff --git a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rsindex 9d351e048b..d3e2376311 100644--- a/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs+++ b/crates/openhuman-core/src/mcp/server/tools_tests_dispatch_tests.rs@@ -126,10 +126,8 @@ async fn call_tool_judges_the_policy_of_the_explicit_context_across_scopes() {// Validating tool arguments calls the tinymcp module, which reaches the// host's installed storage.let storage = crate::storage::test_support::sqlite_backend().expect("SQLite test backend");- let _storage_guard = crate::storage::test_support::install_for_test(- &storage.url,- Arc::clone(&storage.backend),- );+ let _storage_guard =+ crate::storage::test_support::install_for_test(&storage.url, Arc::clone(&storage.backend));denying.storage.url = Some(storage.url.clone());allowing.storage.url = Some(storage.url.clone());let deny_core = CoreContext::for_test_with_config(DomainSet::full(), denying);diff --git a/crates/openhuman-core/src/security/credentials/ops_tests.rs b/crates/openhuman-core/src/security/credentials/ops_tests.rsindex 1839836f3d..fbeba9eac1 100644--- a/crates/openhuman-core/src/security/credentials/ops_tests.rs+++ b/crates/openhuman-core/src/security/credentials/ops_tests.rs@@ -79,9 +79,9 @@ fn store_live_session(user_id: &str) -> Config {config}-#[path = "ops_credential_tests.rs"]-mod credential_tests;#[path = "ops_credential_local_session_tests.rs"]mod credential_local_session_tests;+#[path = "ops_credential_tests.rs"]+mod credential_tests;#[path = "ops_provider_oauth_tests.rs"]mod provider_oauth_tests;diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rsindex 95c6127741..a68a94e06d 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_model_tests.rs@@ -419,12 +419,13 @@ async fn a_late_api_key_401_after_a_session_request_keeps_the_session() {.receiver();let tmp = tempfile::TempDir::new().expect("temporary credentials");seed_app_session(tmp.path(), Some("2999-01-01T00:00:00Z"));- let api_key_profile = openhuman_embed::__host::security::credentials::api_key::store_api_key_in(- tmp.path(),- false,- "test-managed-key",- )- .expect("store test API key");+ let api_key_profile =+ openhuman_embed::__host::security::credentials::api_key::store_api_key_in(+ tmp.path(),+ false,+ "test-managed-key",+ )+ .expect("store test API key");// The API-key request is held until the session request has resolved its// own bearer and failed.