Skip to content

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

style(tinyagents): reformat denylist test assertions

Steven Enamakel7a4c88b972db
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
index df1aeaa6be..16e3512100 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/definition_registry_tests.rs
@@ -224,9 +224,18 @@ fn skills_wildcard_entries_are_not_agent_ids() {
#[test]
fn denylist_supports_exact_and_prefix_forms() {
let denied = vec!["file_write".to_string(), "storage_*".to_string()];
- assert!(crate::tools::rules::glob_list_matches(&denied, "file_write"));
- assert!(crate::tools::rules::glob_list_matches(&denied, "storage_delete_file"));
- assert!(!crate::tools::rules::glob_list_matches(&denied, "file_read"));
+ assert!(crate::tools::rules::glob_list_matches(
+ &denied,
+ "file_write"
+ ));
+ assert!(crate::tools::rules::glob_list_matches(
+ &denied,
+ "storage_delete_file"
+ ));
+ assert!(!crate::tools::rules::glob_list_matches(
+ &denied,
+ "file_read"
+ ));
}
/// A wildcard scope materializes the session's registered tool surface.