From 5395df24a05fbb7590249f8cbd5c77eee584889f Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Sun, 17 Sep 2017 13:54:00 +0200 Subject: 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 >. --- _pytest/test_unfurl.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit