aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unfurl.py
diff options
context:
space:
mode:
authorTollef Fog Heen <tfheen@err.no>2015-08-29 17:24:48 +0200
committerTollef Fog Heen <tfheen@err.no>2015-08-29 17:27:30 +0200
commit5becd85b48ee366fb392dade8fd7c46569b0a24c (patch)
tree523ebf349981091f6837b0511831cfef193cae3f /_pytest/test_unfurl.py
parent784ba9da7eef89c429b97b5a59a884b12563163c (diff)
downloadwee-slack-5becd85b48ee366fb392dade8fd7c46569b0a24c.tar.gz
Refactor unfurl_refs
Instead of blindly splitting on spaces, use something approximating a parser for parsing refs. Also add another test case.
Diffstat (limited to '_pytest/test_unfurl.py')
-rw-r--r--_pytest/test_unfurl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/_pytest/test_unfurl.py b/_pytest/test_unfurl.py
index e731afd..ed4680e 100644
--- a/_pytest/test_unfurl.py
+++ b/_pytest/test_unfurl.py
@@ -18,6 +18,9 @@ unfurl_map = [
{ "input": "url: <https://example.com|example> suffix",
"output": "url: https://example.com (example) suffix",
},
+ { "input": "url: <https://example.com|example with spaces> suffix",
+ "output": "url: https://example.com (example with spaces) suffix",
+ },
]