aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-26 21:23:27 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-04-05 20:22:45 +0200
commit2fe22630c27bde3d185f4f6c663b16d1ce2910ac (patch)
treeba94e3a3d93b57b2b490316f379a2243ef24ccf4 /_pytest
parent483a666116914b7707d2ad36de216f90f17e4ff2 (diff)
downloadwee-slack-2fe22630c27bde3d185f4f6c663b16d1ce2910ac.tar.gz
Add tests for unfurl_auto_link_display with mailto
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/test_unfurl.py15
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',