aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest
diff options
context:
space:
mode:
Diffstat (limited to '_pytest')
-rw-r--r--_pytest/test_unwrap_attachments.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py
index 89436af..ab2172a 100644
--- a/_pytest/test_unwrap_attachments.py
+++ b/_pytest/test_unwrap_attachments.py
@@ -51,6 +51,7 @@ import pytest
'text': 'Attachment text',
'title_link': 'http://link?a=1&b=2',
'from_url': 'http://link?a=1&b=2',
+ 'image_url': 'http://link?a=1&b=2',
}]},
'input_text_before': "http://link?a=1&b=2",
'output': "\n".join([
@@ -65,6 +66,7 @@ import pytest
'text': 'Attachment text',
'title_link': 'http://link',
'from_url': 'http://link',
+ 'image_url': 'http://link',
}]},
'input_text_before': "",
'output': "\n".join([
@@ -75,6 +77,20 @@ import pytest
{
'input_message': {'attachments': [{
'title': 'Title',
+ 'text': 'Attachment text',
+ 'from_url': 'http://link',
+ 'image_url': 'http://link',
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "Title",
+ "http://link",
+ "Attachment text",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
+ 'title': 'Title',
'text': 'Attachment text\n\n\nWith multiple lines',
}]},
'input_text_before': "",