aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unwrap_attachments.py
diff options
context:
space:
mode:
authorCharlie Allom <yeled@github.com>2018-06-08 09:47:53 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2018-06-08 10:47:53 +0200
commit41b847ecc1978249052e1ef5c6dbb161f0dc5ca2 (patch)
tree8d4aef00dd13438867f34c2a192d7ec8edf7020c /_pytest/test_unwrap_attachments.py
parent6df61f330460316db2a72e770214b1ba82c3cb56 (diff)
downloadwee-slack-41b847ecc1978249052e1ef5c6dbb161f0dc5ca2.tar.gz
print `image_url` if it exists (#504)
* print `image_url` if it exists * add test for image_url * requirements.txt for pytest * fix requirements.txt * text before image_url * this isn’t required * README readability for development section thanks @trygveaa * README reorder for this development section
Diffstat (limited to '_pytest/test_unwrap_attachments.py')
-rw-r--r--_pytest/test_unwrap_attachments.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py
index ee5bd8b..0839613 100644
--- a/_pytest/test_unwrap_attachments.py
+++ b/_pytest/test_unwrap_attachments.py
@@ -32,6 +32,21 @@ import pytest
'input_message': {'attachments': [{
'title': 'Title',
'text': 'Attachment text',
+ 'title_link': 'http://title.link',
+ 'image_url': 'http://image.url',
+ 'fallback': 'Fallback',
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "Title (http://title.link)",
+ "Attachment text",
+ "http://image.url",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
+ 'title': 'Title',
+ 'text': 'Attachment text',
'title_link': 'http://link?a=1&b=2',
'from_url': 'http://link?a=1&b=2',
}]},