From 5dfba738a85d3065de0275ae3a0ed607d1fe3788 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 26 Mar 2020 21:33:54 +0100 Subject: 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. --- _pytest/test_unfurl.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to '_pytest') 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 @@ -103,6 +103,11 @@ import wee_slack 'output': "@alice multiple unfurl https://example.com (example with spaces)", 'auto_link_display': 'both', }, + { + 'input': "url with equal fallback: suffix", + 'output': "url with equal fallback: https://example.com suffix", + 'auto_link_display': 'both', + }, { 'input': "try the #general channel", 'output': "try the #general channel", -- cgit