Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(session_host): seed managed inference credential in test config

Steven Enamakelcccaf85a734e
diff --git a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
index ada723c01d..1264243a77 100644
--- a/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/builder/builder_tests.rs
@@ -34,6 +34,8 @@ fn test_config(tmp: &tempfile::TempDir) -> crate::config::Config {
let mut config = test_config_without_inference(tmp);
crate::agent::session_host::test_support::install_model_fixture();
config.default_model = Some("test/session-fixture".to_string());
+ crate::security::credentials::api_key::store_api_key(&config, "test-session-fixture-key")
+ .expect("store the managed inference fixture credential");
config
}