diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-03-26 21:33:54 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-05 20:22:46 +0200 |
commit | 5dfba738a85d3065de0275ae3a0ed607d1fe3788 (patch) | |
tree | fcf708fe6e2290c7ec59e3085aaf1d66e53604aa /_pytest | |
parent | 2fe22630c27bde3d185f4f6c663b16d1ce2910ac (diff) | |
download | wee-slack-5dfba738a85d3065de0275ae3a0ed607d1fe3788.tar.gz |
Ignore ref fallback if it's equal to the ref
Prevents showing "http://some.url (http://some.url)" if the url has a
fallback which is equal to the url.
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_unfurl.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py index b76e5f6..480000e 100644 --- a/_pytest/test_unfurl.py +++ b/_pytest/test_unfurl.py @@ -104,6 +104,11 @@ import wee_slack 'auto_link_display': 'both', }, { + 'input': "url with equal fallback: <https://example.com|https://example.com> suffix", + 'output': "url with equal fallback: https://example.com suffix", + 'auto_link_display': 'both', + }, + { 'input': "try the #general channel", 'output': "try the #general channel", }, |