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
style: format document and presentation tests
Steven Enamakel38cedc69c37c
diff --git a/crates/openhuman-core/src/tools/impl/document/document_tests.rs b/crates/openhuman-core/src/tools/impl/document/document_tests.rsindex 78eccb4e03..74526cd436 100644--- a/crates/openhuman-core/src/tools/impl/document/document_tests.rs+++ b/crates/openhuman-core/src/tools/impl/document/document_tests.rs@@ -94,10 +94,6 @@ fn description_includes_router_rules() {assert!(desc.contains("document") || desc.contains("docx"));}----#[tokio::test]async fn execute_rejects_too_many_sections() {let ws = workspace();@@ -109,7 +105,9 @@ async fn execute_rejects_too_many_sections() {let result = tool.execute(args).await.expect("execute returns Ok");assert!(result.is_error);assert!(- result.text().contains(&format!("must contain ≤ {MAX_SECTIONS} sections")),+ result+ .text()+ .contains(&format!("must contain ≤ {MAX_SECTIONS} sections")),"the tool should preserve the bus limit in its error: {}",result.text());diff --git a/crates/openhuman-core/src/tools/impl/document/types_tests.rs b/crates/openhuman-core/src/tools/impl/document/types_tests.rsindex d69420e481..50f407f1ce 100644--- a/crates/openhuman-core/src/tools/impl/document/types_tests.rs+++ b/crates/openhuman-core/src/tools/impl/document/types_tests.rs@@ -19,7 +19,6 @@ fn base() -> GenerateDocumentInput {}}-#[test]fn tinydocs_invalid_input_keeps_its_field_and_reason() {// The structured pair is what the agent self-corrects on, so thediff --git a/crates/openhuman-core/src/tools/impl/presentation/mod.rs b/crates/openhuman-core/src/tools/impl/presentation/mod.rsindex 3bb2af562b..de8fca752b 100644--- a/crates/openhuman-core/src/tools/impl/presentation/mod.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/mod.rs@@ -50,9 +50,8 @@ mod tests;use tinydocs_bus::spec::SlideImage;use self::types::{- to_bus_spec, validate_image_references, GeneratePresentationInput,- GeneratePresentationOutput, PresentationError, SlideImageRequest, SlideImageSource,- MAX_IMAGE_BYTES,+ to_bus_spec, validate_image_references, GeneratePresentationInput, GeneratePresentationOutput,+ PresentationError, SlideImageRequest, SlideImageSource, MAX_IMAGE_BYTES,};/// Generation timeout. `ppt-rs` typically completes the full 64-slidediff --git a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rsindex dd1dfc469a..babc4b13a6 100644--- a/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs+++ b/crates/openhuman-core/src/tools/impl/presentation/presentation_tests.rs@@ -99,10 +99,6 @@ fn description_includes_router_rules() {assert!(desc.contains("slides") || desc.contains("deck") || desc.contains("presentation"));}----#[tokio::test]async fn execute_rejects_too_many_slides() {let ws = workspace();@@ -140,7 +136,9 @@ fn resolved_presentation_uses_bus_validation_and_preserves_its_limit_error() {let images = vec![Vec::new(); input.slides.len()];let spec = super::types::to_bus_spec(&input, &images).expect("one image list per slide");- let error = spec.validate().expect_err("the bus slide limit is enforced");+ let error = spec+ .validate()+ .expect_err("the bus slide limit is enforced");let error = PresentationError::from(error);match error {PresentationError::InvalidInput { field, reason } => {@@ -433,7 +431,10 @@ async fn execute_rejects_too_many_images_per_deck() {"slides": [{ "title": "Slide", "bullets": ["x"], "images": images }]});let result = tool.execute(args).await.expect("execute returns Ok");- assert!(result.is_error, "9 resolved images should exceed the bus limit");+ assert!(+ result.is_error,+ "9 resolved images should exceed the bus limit"+ );assert!(result.text().contains("must contain ≤ 8 images total"),"the tool should preserve the bus limit in its error: {}",