Skip to content

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

refactor(composio): move test module declaration to end of file

Steven Enamakelf13597088575
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs
index 4819d88ffd..d627902af3 100644
--- a/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs
+++ b/crates/openhuman-core/src/flows/tinyflows/caps/tools/composio.rs
@@ -76,10 +76,6 @@ fn capability_error_display(message: &str) -> String {
EngineError::Capability(message.to_string()).to_string()
}
-#[cfg(test)]
-#[path = "composio_tests.rs"]
-mod tests;
-
#[async_trait]
impl ToolBackend for ComposioToolBackend {
fn name(&self) -> &'static str {
@@ -113,3 +109,7 @@ impl ToolBackend for ComposioToolBackend {
.map_err(EngineError::Capability)
}
}
+
+#[cfg(test)]
+#[path = "composio_tests.rs"]
+mod tests;