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
fix: correct test module visibility for ops_tests
Steven Enamakel14fce1d63e60
diff --git a/crates/openhuman-core/src/skills/webhooks/ops_tests.rs b/crates/openhuman-core/src/skills/webhooks/ops_tests.rsindex 72970fcb2c..67c34b50b0 100644--- a/crates/openhuman-core/src/skills/webhooks/ops_tests.rs+++ b/crates/openhuman-core/src/skills/webhooks/ops_tests.rs@@ -80,7 +80,19 @@ fn require_token_returns_stored_token_trimmed() {let config = test_config(&tmp);store_session_token(&config, " tok-123 ");let got = require_token(&config).expect("token");- assert_eq!(got, "tok-123");+ assert_eq!(got.secret(), "tok-123");+ assert!(!got.is_api_key());+}++#[test]+fn require_token_prefers_the_api_key() {+ let tmp = TempDir::new().unwrap();+ let config = test_config(&tmp);+ store_session_token(&config, "tok-123");+ crate::security::credentials::api_key::store_api_key(&config, "tiny_test_key").unwrap();+ let got = require_token(&config).expect("credential");+ assert!(got.is_api_key());+ assert_eq!(got.secret(), "tiny_test_key");}#[test]diff --git a/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs b/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rsindex 82eea4725c..2871634bd8 100644--- a/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs+++ b/crates/openhuman-tinyhumans/src/hosted/referral/ops_tests.rs@@ -74,7 +74,7 @@ fn require_token_trims_stored_value() {let tmp = TempDir::new().unwrap();let config = test_config(&tmp);store_session_token(&config, " tok ");- assert_eq!(require_token(&config).unwrap(), "tok");+ assert_eq!(require_token(&config).unwrap().secret(), "tok");}#[test]