Skip to content

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

test(tests): update test assertions and formatting

Steven Enamakel199c4095536e
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
index 018ec2da37..8dac59af08 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/ops_schema_and_structured_output_tests.rs
@@ -61,19 +61,11 @@ fn resolve_completion_model_leaves_managed_tier_and_hint_node_models_untouched()
);
// No pinned model, or a whitespace-only pin, keeps the resolved default.
assert_eq!(
- agent_prompt::resolve_completion_model(
- None,
- "chat-v1".to_string(),
- is_raw_model
- ),
+ agent_prompt::resolve_completion_model(None, "chat-v1".to_string(), is_raw_model),
"chat-v1"
);
assert_eq!(
- agent_prompt::resolve_completion_model(
- Some(" "),
- "chat-v1".to_string(),
- is_raw_model
- ),
+ agent_prompt::resolve_completion_model(Some(" "), "chat-v1".to_string(), is_raw_model),
"chat-v1"
);
}
diff --git a/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs b/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs
index c8e9260631..18d1e9d79e 100644
--- a/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs
@@ -37,7 +37,10 @@ async fn managed_construction_ledger_collapses_repeat_disclosures() {
provider_id,
crate::inference::registry::ChatModelEntry {
build: Arc::new(|request| {
- let model = request.model_override.unwrap_or("fixture-model").to_string();
+ let model = request
+ .model_override
+ .unwrap_or("fixture-model")
+ .to_string();
Ok((Arc::new(LedgerTestModel), model))
}),
probe: None,