aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_linkifytext.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2019-08-24 17:25:51 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2019-08-25 19:42:06 +0200
commit88f02db6f1bdade3c745123a6886bf4f47a4ed9c (patch)
treeb9fa1cb11b6d89cf90a412b59eb7825def8dcd15 /_pytest/test_linkifytext.py
parent73c79f2960f5852f56879e26c57cb00043cbe343 (diff)
downloadwee-slack-88f02db6f1bdade3c745123a6886bf4f47a4ed9c.tar.gz
Include @ in subteam handle
Subteams/usergroups should never be used without the @.
Diffstat (limited to '_pytest/test_linkifytext.py')
-rw-r--r--_pytest/test_linkifytext.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/test_linkifytext.py b/_pytest/test_linkifytext.py
index a31fa6d..fb251b8 100644
--- a/_pytest/test_linkifytext.py
+++ b/_pytest/test_linkifytext.py
@@ -40,9 +40,9 @@ def test_linkifytext_names_with_apostrophe(team):
def test_linkifytext_names_with_subgroup_notification(team):
subteam = team.subteams['TGX0ALBK3']
message = 'This is a message for a subteam'
- text = linkify_text('@{}: {}'.format(subteam.handle, message), team)
+ text = linkify_text('{}: {}'.format(subteam.handle, message), team)
- assert text == '<!subteam^{}|@{}>: {}'.format(subteam.identifier, subteam.handle, message)
+ assert text == '<!subteam^{}|{}>: {}'.format(subteam.identifier, subteam.handle, message)
def test_linkifytext_at_channel(team):
text = linkify_text('@channel: my test message', team)