Skip to content

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

test(channels): set up module fixture in provider route test

Steven Enamakeld2adeea982e5
diff --git a/crates/openhuman-core/src/channels/routes_provider_tests.rs b/crates/openhuman-core/src/channels/routes_provider_tests.rs
index efe2f2a590..04f165e9b5 100644
--- a/crates/openhuman-core/src/channels/routes_provider_tests.rs
+++ b/crates/openhuman-core/src/channels/routes_provider_tests.rs
@@ -11,27 +11,28 @@ async fn handle_runtime_command_routes_configured_provider_slug_and_alias() {
use crate::config::schema::{AuthStyle, CloudProviderCreds};
let mut ctx = runtime_context(PathBuf::from("/tmp"));
- let config = crate::config::Config {
- cloud_providers: vec![
- CloudProviderCreds {
- id: "p_custom_route_123".into(),
- slug: "custom-route".into(),
- label: "Human Friendly Name".into(),
- endpoint: "https://provider.example.test/v1".into(),
- auth_style: AuthStyle::Bearer,
- default_model: None,
- },
- CloudProviderCreds {
- id: "p_managed_123".into(),
- slug: "openhuman".into(),
- label: "Managed Backend".into(),
- endpoint: "https://api.openhuman.ai/v1".into(),
- auth_style: AuthStyle::OpenhumanJwt,
- default_model: None,
- },
- ],
- ..crate::config::Config::default()
- };
+ crate::channels::module_fixture::client().await;
+ let mut config = crate::config::Config::default();
+ config.modules.allow_download = false;
+ config.modules.source = crate::config::schema::ModuleSourceMode::Linked;
+ config.cloud_providers = vec![
+ CloudProviderCreds {
+ id: "p_custom_route_123".into(),
+ slug: "custom-route".into(),
+ label: "Human Friendly Name".into(),
+ endpoint: "https://provider.example.test/v1".into(),
+ auth_style: AuthStyle::Bearer,
+ default_model: None,
+ },
+ CloudProviderCreds {
+ id: "p_managed_123".into(),
+ slug: "openhuman".into(),
+ label: "Managed Backend".into(),
+ endpoint: "https://api.openhuman.ai/v1".into(),
+ auth_style: AuthStyle::OpenhumanJwt,
+ default_model: None,
+ },
+ ];
ctx.config = Some(Arc::new(config));
let channel_impl = Arc::new(RecordingChannel::default());
let channel: Arc<dyn Channel> = channel_impl.clone();