diff options
Diffstat (limited to '_pytest/test_unfurl.py')
-rw-r--r-- | _pytest/test_unfurl.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py index 4aac742..b76e5f6 100644 --- a/_pytest/test_unfurl.py +++ b/_pytest/test_unfurl.py @@ -64,6 +64,11 @@ import wee_slack 'auto_link_display': 'both', }, { + 'input': "url: <mailto:name@example.com|name@example.com> suffix", + 'output': "url: mailto:name@example.com (name@example.com) suffix", + 'auto_link_display': 'both', + }, + { 'input': "url: <https://example.com|example.com> suffix", 'output': "url: example.com suffix", 'auto_link_display': 'text', @@ -74,6 +79,11 @@ import wee_slack 'auto_link_display': 'text', }, { + 'input': "url: <mailto:name@example.com|name@example.com> suffix", + 'output': "url: name@example.com suffix", + 'auto_link_display': 'text', + }, + { 'input': "url: <https://example.com|different text> suffix", 'output': "url: https://example.com (different text) suffix", 'auto_link_display': 'url', @@ -84,6 +94,11 @@ import wee_slack 'auto_link_display': 'url', }, { + 'input': "url: <mailto:name@example.com|name@example.com> suffix", + 'output': "url: mailto:name@example.com suffix", + 'auto_link_display': 'url', + }, + { 'input': "<@U407ABLLW> multiple unfurl <https://example.com|example with spaces>", 'output': "@alice multiple unfurl https://example.com (example with spaces)", 'auto_link_display': 'both', |