Skip to content

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

test(flows): add model fixture setup to flow tests

Steven Enamakelc709701d2f21
diff --git a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
index 50d6bb539c..c7eb5db6e5 100644
--- a/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_migration_and_side_effect_tests.rs
@@ -8,6 +8,7 @@ use super::*;
/// production.
#[tokio::test]
async fn flows_discover_applies_the_flow_discovery_definitions_effective_iteration_cap() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
assert_eq!(config.agent.max_tool_iterations, 10);
diff --git a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
index 394e273998..cb3caf58a5 100644
--- a/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
+++ b/crates/openhuman-core/src/flows/ops_run_status_and_prompt_binding_tests.rs
@@ -112,6 +112,7 @@ fn agent_prompt_binding_unaffected() {
/// tools in place so the turn still functions (never fail-closes).
#[tokio::test]
async fn flows_build_hides_the_live_run_tool_from_the_builder_belt() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
@@ -244,6 +245,7 @@ fn flows_build_hide_lists_have_the_expected_contents() {
/// run — a product decision, deliberately not taken here.
#[tokio::test]
async fn flows_build_copilot_toolset_unhides_the_live_run_tools() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
@@ -306,6 +308,7 @@ async fn flows_build_copilot_toolset_unhides_the_live_run_tools() {
/// override needed (that function was deleted as part of #4868).
#[tokio::test]
async fn flows_build_applies_the_builder_definitions_effective_iteration_cap() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = TempDir::new().unwrap();
let config = test_config(&tmp);
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
index baa0957f33..a2c0cc2b35 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_tier_gate_and_timeouts_tests.rs
@@ -409,6 +409,7 @@ fn nested_harness_does_not_escalate_without_an_origin() {
/// provider to exercise).
#[test]
fn agent_node_runtime_resolves_to_the_definitions_effective_iteration_cap() {
+ crate::agent::session_host::test_support::install_model_fixture();
let tmp = tempfile::TempDir::new().unwrap();
let config = resolver_test_config(&tmp);
assert_eq!(config.agent.max_tool_iterations, 10);