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
chore: fix indentation and module ordering in browser and notification tests
Steven Enamakel484f81783579
diff --git a/crates/openhuman-app/src/native_notifications/native_notifications_tests.rs b/crates/openhuman-app/src/native_notifications/native_notifications_tests.rsindex f36ded40d6..c7c5492a4e 100644--- a/crates/openhuman-app/src/native_notifications/native_notifications_tests.rs+++ b/crates/openhuman-app/src/native_notifications/native_notifications_tests.rs@@ -1,46 +1,46 @@- use super::*;+use super::*;- #[test]- fn is_granted_treats_authorized_variants_as_granted() {- assert!(is_granted("granted"));- assert!(is_granted("provisional"));- assert!(is_granted("ephemeral"));- }+#[test]+fn is_granted_treats_authorized_variants_as_granted() {+ assert!(is_granted("granted"));+ assert!(is_granted("provisional"));+ assert!(is_granted("ephemeral"));+}- #[test]- fn is_granted_rejects_unauthorized_states() {- assert!(!is_granted("denied"));- assert!(!is_granted("not_determined"));- assert!(!is_granted("unknown"));- assert!(!is_granted(""));- }+#[test]+fn is_granted_rejects_unauthorized_states() {+ assert!(!is_granted("denied"));+ assert!(!is_granted("not_determined"));+ assert!(!is_granted("unknown"));+ assert!(!is_granted(""));+}- #[test]- fn status_to_str_maps_known_statuses() {- assert_eq!(status_to_str(UNAuthorizationStatus::Authorized), "granted");- assert_eq!(status_to_str(UNAuthorizationStatus::Denied), "denied");- assert_eq!(- status_to_str(UNAuthorizationStatus::NotDetermined),- "not_determined"- );- assert_eq!(- status_to_str(UNAuthorizationStatus::Provisional),- "provisional"- );- assert_eq!(status_to_str(UNAuthorizationStatus::Ephemeral), "ephemeral");- }+#[test]+fn status_to_str_maps_known_statuses() {+ assert_eq!(status_to_str(UNAuthorizationStatus::Authorized), "granted");+ assert_eq!(status_to_str(UNAuthorizationStatus::Denied), "denied");+ assert_eq!(+ status_to_str(UNAuthorizationStatus::NotDetermined),+ "not_determined"+ );+ assert_eq!(+ status_to_str(UNAuthorizationStatus::Provisional),+ "provisional"+ );+ assert_eq!(status_to_str(UNAuthorizationStatus::Ephemeral), "ephemeral");+}- #[test]- fn bundled_app_layout_is_accepted() {- assert!(is_bundled_app_executable(Path::new(- "/Applications/OpenHuman.app/Contents/MacOS/OpenHuman"- )));- }+#[test]+fn bundled_app_layout_is_accepted() {+ assert!(is_bundled_app_executable(Path::new(+ "/Applications/OpenHuman.app/Contents/MacOS/OpenHuman"+ )));+}- #[test]- fn unbundled_executable_is_rejected() {- assert!(!is_bundled_app_executable(Path::new(- "/tmp/openhuman/target/debug/OpenHuman"- )));- }+#[test]+fn unbundled_executable_is_rejected() {+ assert!(!is_bundled_app_executable(Path::new(+ "/tmp/openhuman/target/debug/OpenHuman"+ )));+}}diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_computer_use.rs b/crates/openhuman-core/src/tools/impl/browser/browser_computer_use.rsindex 222b2487ae..3ab323f1d6 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_computer_use.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_computer_use.rs@@ -4,7 +4,12 @@use super::*;impl BrowserTool {- pub(super) fn validate_coordinate(&self, key: &str, value: i64, max: Option<i64>) -> anyhow::Result<()> {+ pub(super) fn validate_coordinate(+ &self,+ key: &str,+ value: i64,+ max: Option<i64>,+ ) -> anyhow::Result<()> {if value < 0 {anyhow::bail!("'{key}' must be >= 0")}diff --git a/crates/openhuman-core/src/tools/impl/browser/browser_tests.rs b/crates/openhuman-core/src/tools/impl/browser/browser_tests.rsindex 91fd988220..df444e6923 100644--- a/crates/openhuman-core/src/tools/impl/browser/browser_tests.rs+++ b/crates/openhuman-core/src/tools/impl/browser/browser_tests.rs@@ -2,7 +2,7 @@ use super::*;static BROWSER_ENV_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());-#[path = "browser_tests_domain_and_parsing_tests.rs"]-mod domain_and_parsing_tests;#[path = "browser_tests_computer_use_and_schema_tests.rs"]mod computer_use_and_schema_tests;+#[path = "browser_tests_domain_and_parsing_tests.rs"]+mod domain_and_parsing_tests;