From 7d919f3897deb322f13428127b1ba91731917f4c Mon Sep 17 00:00:00 2001 From: Nana Amfo Date: Mon, 8 Apr 2019 06:03:35 -0500 Subject: Add @user-groups support (#680) Add @user-groups with tab-completion. @user-groups will be unfurl into format message before sending message via linktext method. --- _pytest/test_linkifytext.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to '_pytest/test_linkifytext.py') diff --git a/_pytest/test_linkifytext.py b/_pytest/test_linkifytext.py index da1586e..fea6ab8 100644 --- a/_pytest/test_linkifytext.py +++ b/_pytest/test_linkifytext.py @@ -53,6 +53,17 @@ def test_linkifytext_names_with_apostrophe(realish_eventrouter): assert text == '@O\'Connor: my test message' +def test_linkifytext_names_with_subgroup_notification(realish_eventrouter): + subteam_id = "TGX0ALBK3" + handle = "test" + team = realish_eventrouter.teams.values()[0] + channel = team.channels.values()[0] + + message = 'This is a message for the test team' + text = linkify_text('@test: {}'.format(message), team) + + assert text == ': {}'.format(subteam_id, handle, message) + def test_linkifytext_at_channel(realish_eventrouter): team = realish_eventrouter.teams.values()[0] -- cgit