diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2019-08-24 18:31:31 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2019-08-25 19:42:06 +0200 |
commit | 97ea3ae638ced4908bdd259e8d2c3c6996f0b1e9 (patch) | |
tree | 7e3931759042e463bfe7809d9cc589bc1fc4e8a0 /_pytest/test_unfurl.py | |
parent | 5e43f251b45ece5548cb5a4f141397787297533b (diff) | |
download | wee-slack-97ea3ae638ced4908bdd259e8d2c3c6996f0b1e9.tar.gz |
Render group notifications with @ instead of !
This is for the notifications @channel, @everyone, @group and @here.
@group isn't mentioned in the documentation[0], but it is still rendered
as a highlight in the web client, so I included it.
[0]: https://get.slack.help/hc/en-us/articles/202009646-Notify-a-channel-or-workspace
Diffstat (limited to '_pytest/test_unfurl.py')
-rw-r--r-- | _pytest/test_unfurl.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py index 17fdc79..be3e958 100644 --- a/_pytest/test_unfurl.py +++ b/_pytest/test_unfurl.py @@ -10,6 +10,22 @@ import pytest 'output': "foo", }, { + 'input': "<!channel>", + 'output': "@channel", + }, + { + 'input': "<!everyone>", + 'output': "@everyone", + }, + { + 'input': "<!group>", + 'output': "@group", + }, + { + 'input': "<!here>", + 'output': "@here", + }, + { 'input': "<@U407ABLLW|@othernick>: foo", 'output': "@alice: foo", 'ignore_alt_text': True, |