Skip to content

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

test: remove redundant get_provider assertions from unknown toolkit tests

Steven Enamakelf7600a038286
diff --git a/src/openhuman/flows/tinyflows/caps/ops_tests_part_01_tests.rs b/src/openhuman/flows/tinyflows/caps/ops_tests_part_01_tests.rs
index 7fc61fb3af..f03f7f0605 100644
--- a/src/openhuman/flows/tinyflows/caps/ops_tests_part_01_tests.rs
+++ b/src/openhuman/flows/tinyflows/caps/ops_tests_part_01_tests.rs
@@ -331,12 +331,11 @@ fn connection_ref_resolves_to_the_chosen_account() {
/// but simply doesn't contain it.
#[tokio::test]
async fn unknown_toolkit_still_rejects() {
- use crate::openhuman::integrations::composio::providers::{catalog_for_toolkit, get_provider};
+ use crate::openhuman::integrations::composio::providers::catalog_for_toolkit;
let config = Config::default();
// Precondition: `flowstestkit` is genuinely uncatalogued, so the decision
// flows through the connected-set path (not the static curated path).
assert!(catalog_for_toolkit("flowstestkit").is_none());
- assert!(get_provider("flowstestkit").is_none());
// No connected set at all → fail-closed reject.
assert!(!flow_tool_allowed(&config, "FLOWSTESTKIT_DO_THING", None).await);
@@ -360,9 +359,8 @@ async fn unknown_toolkit_still_rejects() {
/// The exact same slug rejects above without a connection.
#[tokio::test]
async fn connected_uncatalogued_toolkit_now_passes() {
- use crate::openhuman::integrations::composio::providers::{catalog_for_toolkit, get_provider};
+ use crate::openhuman::integrations::composio::providers::catalog_for_toolkit;
assert!(catalog_for_toolkit("flowstestkit").is_none());
- assert!(get_provider("flowstestkit").is_none());
let config = Config::default();
seed_live_catalog_cache(
@@ -410,9 +408,8 @@ async fn connected_uncatalogued_toolkit_now_passes() {
/// which passes.
#[tokio::test]
async fn expired_live_catalog_entry_is_treated_as_a_cache_miss() {
- use crate::openhuman::integrations::composio::providers::{catalog_for_toolkit, get_provider};
+ use crate::openhuman::integrations::composio::providers::catalog_for_toolkit;
assert!(catalog_for_toolkit("flowsexpiredkit").is_none());
- assert!(get_provider("flowsexpiredkit").is_none());
let config = Config::default();
seed_live_catalog_cache_expired(
@@ -448,9 +445,8 @@ async fn expired_live_catalog_entry_is_treated_as_a_cache_miss() {
/// sufficient, the slug itself must be real.
#[tokio::test]
async fn connected_uncatalogued_toolkit_rejects_a_hallucinated_slug() {
- use crate::openhuman::integrations::composio::providers::{catalog_for_toolkit, get_provider};
+ use crate::openhuman::integrations::composio::providers::catalog_for_toolkit;
assert!(catalog_for_toolkit("flowstestkit").is_none());
- assert!(get_provider("flowstestkit").is_none());
let config = Config::default();
seed_live_catalog_cache(