The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(tests): correct test assertions for composio tools part 02
Steven Enamakelfca0ee3044ed
diff --git a/src/openhuman/integrations/composio/tools_tests_part_02_tests.rs b/src/openhuman/integrations/composio/tools_tests_part_02_tests.rsindex 6d2d322571..981fad49ea 100644--- a/src/openhuman/integrations/composio/tools_tests_part_02_tests.rs+++ b/src/openhuman/integrations/composio/tools_tests_part_02_tests.rs@@ -1,10 +1,18 @@use super::*;#[test]-fn empty_uncurated_toolkits_message_uses_provider_curated_tools() {- register_provider(Arc::new(ProviderOnlyCatalog));-- assert!(empty_uncurated_toolkits_message(&["provideronly".to_string()]).is_none());+fn empty_uncurated_toolkits_message_uses_contract_catalog() {+ // Used to register a stub `ComposioProvider` under the engine's+ // provider registry and assert a toolkit answered only by that+ // provider's `curated_tools()` (not the static catalog) still counted+ // as catalogued. tinymemory v1.13.4 deleted `ComposioProvider` and the+ // registry outright with no replacement (see `providers`'s module+ // docs) — `uncatalogued_toolkits` now consults `catalog_for_toolkit`+ // alone, so this asserts the same "catalogued toolkit produces no+ // message" behaviour against a real catalogued toolkit instead of an+ // injected one.+ assert!(empty_uncurated_toolkits_message(&["gmail".to_string()]).is_none());+ assert!(empty_uncurated_toolkits_message(&["not-a-real-toolkit-xyz".to_string()]).is_some());}#[test]