Skip to content

Commit 6fc9b5c

Browse files
authored
feat: include the target runtime in the get-hooks response (#26)
* feat: include the target runtime in get-hooks * style: include spacing before the assert
1 parent 0015999 commit 6fc9b5c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

slack_cli_hooks/hooks/get_hooks.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"protocol-version": [MessageBoundaryProtocol.name, DefaultProtocol.name],
2323
"sdk-managed-connection-enabled": True,
2424
},
25+
"runtime": "python",
2526
}
2627

2728
if __name__ == "__main__":

tests/slack_cli_hooks/hooks/test_get_hooks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ def test_hooks_watch_regex(self):
2323

2424
filter_regex = config["watch"]["filter-regex"]
2525
assert re.match(filter_regex, "manifest.json") is not None
26+
27+
def test_hooks_runtime(self):
28+
runtime = hooks_payload["runtime"]
29+
30+
assert runtime == "python"

0 commit comments

Comments
 (0)