aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unfurl.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2017-09-17 13:54:00 +0200
committerTrygve Aaberge <trygveaa@gmail.com>2017-09-17 13:59:14 +0200
commit5395df24a05fbb7590249f8cbd5c77eee584889f (patch)
treeed03de8c6803fe4a20eda84aabf8f0c7eaf40288 /_pytest/test_unfurl.py
parent20842f05f8ea9e03c56018f1a997fd8ba47f8918 (diff)
downloadwee-slack-5395df24a05fbb7590249f8cbd5c77eee584889f.tar.gz
test: Add a unfurl test case for messages containing >
This tests the bug that was fixed in commit c667bf6, where a message that first has an url and then a > character would try to unfurl everything up to the last >.
Diffstat (limited to '_pytest/test_unfurl.py')
-rw-r--r--_pytest/test_unfurl.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py
index 50dbc95..eebe446 100644
--- a/_pytest/test_unfurl.py
+++ b/_pytest/test_unfurl.py
@@ -38,6 +38,10 @@ slack = wee_slack
'input': "try the #general channel",
'output': "try the #general channel",
},
+ {
+ 'input': "<@U407ABLLW> I think 3 > 2",
+ 'output': "@alice I think 3 > 2",
+ },
))
def test_unfurl_refs(case, realish_eventrouter):
slack.EVENTROUTER = realish_eventrouter