Skip to content

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

fix(test): update assertion to match renamed section heading

Steven Enamakelffcc22dc4e31
diff --git a/src/openhuman/agent/prompts/mod_tests.rs b/src/openhuman/agent/prompts/mod_tests.rs
index ffeb89bb0c..184f8b5635 100644
--- a/src/openhuman/agent/prompts/mod_tests.rs
+++ b/src/openhuman/agent/prompts/mod_tests.rs
@@ -146,8 +146,8 @@ fn grounding_contract_appended_to_every_build_path() {
// Appears before the output-style suffix (tail placement).
let g = defaults.find("## Grounding and tool use").unwrap();
- let s = defaults.find("## Output style").unwrap();
- assert!(g < s, "grounding should precede the output-style suffix");
+ let s = defaults.find("# Writing style").unwrap();
+ assert!(g < s, "grounding should precede the writing-style suffix");
}
#[test]
diff --git a/src/openhuman/agent/tinyagents/host/context_composer.rs b/src/openhuman/agent/tinyagents/host/context_composer.rs
index 9170ae1af8..d0f9a8b93d 100644
--- a/src/openhuman/agent/tinyagents/host/context_composer.rs
+++ b/src/openhuman/agent/tinyagents/host/context_composer.rs
@@ -393,7 +393,7 @@ mod tests {
// global style suffix; asserting on the suffix pins that we went
// through `SystemPromptBuilder::build` rather than hand-assembling.
assert!(
- prompt.contains("## Output style"),
+ prompt.contains("# Writing style"),
"prompt must come from SystemPromptBuilder::build"
);
}