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: reformat assertions and imports in orchestrator and subagent tests
Steven Enamakela0fd1641aeb4
diff --git a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests.rs b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests.rsindex f2812c1e61..749a8acdc3 100644--- a/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests.rs+++ b/crates/openhuman-core/src/agent_registry/agents/orchestrator/prompt_tests.rs@@ -379,11 +379,8 @@ fn connected_integrations_block_is_format_independent() {#[test]fn connected_integrations_block_routes_capability_questions_to_search() {let guide = render_connected_integrations(&gmail_only());- assert!(- guide.contains(- "Its results, not prior knowledge or past answers, say what a toolkit can do."- )- );+ assert!(guide+ .contains("Its results, not prior knowledge or past answers, say what a toolkit can do."));assert!(!guide.contains("integrations_agent"));}@@ -520,11 +517,8 @@ fn build_carries_the_spec_check_grounding_rules() {assert!(body.contains("Checks must mirror how the task is specified or graded"));assert!(body.contains("Never delete state, data or services the solution needs at runtime"));assert!(body.contains("Verify the final state as a fresh consumer would see it."));- assert!(- body.contains(- "List the request's stated constraints, filters and thresholds as `todo` items"- )- );+ assert!(body+ .contains("List the request's stated constraints, filters and thresholds as `todo` items"));}#[test]diff --git a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rsindex b342554dbd..2de461625d 100644--- a/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs+++ b/crates/openhuman-core/src/agent_runs/subagent_control_tests.rs@@ -54,7 +54,7 @@ fn field(out: &Value, name: &str) -> Option<Value> {/// durable session alone, instead of rewriting it as "cancelled by user".#[tokio::test]async fn cancel_of_a_legacy_failed_run_reports_its_outcome_and_rewrites_nothing() {- use crate::agent::orchestration::subagent_sessions::{SubagentSessionStore, mark_failed};+ use crate::agent::orchestration::subagent_sessions::{mark_failed, SubagentSessionStore};use crate::core::runtime::{CoreContext, DispatchCtx, DomainSet};use std::sync::Arc;@@ -119,8 +119,8 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {forget_workspace_for_test, pending_for,};use crate::agent::orchestration::subagent_sessions::{- DriverTaskCancellation, DurableSubagentStatus, SubagentSessionSelector,- SubagentSessionStore, SubagentSessionUpsert, mark_finished, upsert_running,+ mark_finished, upsert_running, DriverTaskCancellation, DurableSubagentStatus,+ SubagentSessionSelector, SubagentSessionStore, SubagentSessionUpsert,};use tinyagents_orchestration::subagent::SubagentTaskKey;use tinyagents_tasks::CompletionStatus;@@ -186,16 +186,14 @@ async fn cancelling_a_paused_driver_queues_a_failed_delivery_with_reason() {};forget_workspace_for_test(&workspace_dir);- assert!(- settle_paused_driver_cancel(- &DispatchCtx::process_default(),- &observed,- observed.parent_epoch,- Some("user requested stop")- )- .await- .expect("paused cancellation settles")- );+ assert!(settle_paused_driver_cancel(+ &DispatchCtx::process_default(),+ &observed,+ observed.parent_epoch,+ Some("user requested stop")+ )+ .await+ .expect("paused cancellation settles"));let row = store.load().unwrap().remove(0);assert_eq!(row.status, DurableSubagentStatus::Failed);