aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/test_linkifytext.py4
-rw-r--r--_pytest/test_processsubteamupdated.py2
2 files changed, 3 insertions, 3 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)
diff --git a/_pytest/test_processsubteamupdated.py b/_pytest/test_processsubteamupdated.py
index 0a98aaa..94c6054 100644
--- a/_pytest/test_processsubteamupdated.py
+++ b/_pytest/test_processsubteamupdated.py
@@ -13,6 +13,6 @@ def test_process_subteam_self_updated(realish_eventrouter, team):
realish_eventrouter.handle_next()
subteam = team.subteams['TGX0ALBK3']
- assert data['subteam']['handle'] == subteam.handle
+ assert '@{}'.format(data['subteam']['handle']) == subteam.handle
assert data['subteam']['description'] == subteam.description
assert data['subteam']['name'] == subteam.name