Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

test(slack): the manifest leaves hidden commands out, as it should

raullopez-sandbox4e61e040ac33
diff --git a/core/tests/switch_core/bridges/collaboration/test_own_app_setup.py b/core/tests/switch_core/bridges/collaboration/test_own_app_setup.py
index 891da1e11..9f08860bf 100644
--- a/core/tests/switch_core/bridges/collaboration/test_own_app_setup.py
+++ b/core/tests/switch_core/bridges/collaboration/test_own_app_setup.py
@@ -37,7 +37,9 @@ class TestSlackManifest:
assert manifest["oauth_config"]["scopes"]["bot"] == list(BOT_SCOPES)
assert manifest["settings"]["socket_mode_enabled"] is True
assert {c["command"] for c in manifest["features"]["slash_commands"]} == {
- f"/{command.name}" for command in COMMANDS if command.description.strip()
+ f"/{command.name}"
+ for command in COMMANDS
+ if command.description.strip() and not command.hidden
}
def test_every_registered_command_does_something(self) -> None: