diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2017-09-20 23:55:33 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2017-09-20 23:55:33 +0200 |
commit | db6b99fc17a1e37564723452963246a9e7a2b787 (patch) | |
tree | c05e1eef7219b193b85699c5422a1b05acb9af01 /_pytest | |
parent | 4556187df35b6bcbbff310ae68ac2ec4bfd9d8ad (diff) | |
download | wee-slack-db6b99fc17a1e37564723452963246a9e7a2b787.tar.gz |
Add a newline between attachments
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_unwrap_attachments.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py index 8b22515..8e41662 100644 --- a/_pytest/test_unwrap_attachments.py +++ b/_pytest/test_unwrap_attachments.py @@ -121,6 +121,28 @@ import pytest "Second field value", ]), }, + { + 'input_message': {'attachments': [{ + 'title': 'First attachment title', + 'text': 'First attachment text', + 'title_link': 'http://title.link.1', + 'from_url': 'http://from.url.1', + }, { + 'title': 'Second attachment title', + 'text': 'Second attachment text', + 'title_link': 'http://title.link.2', + 'from_url': 'http://from.url.2', + }]}, + 'input_text_before': "", + 'output': "\n".join([ + "First attachment title (http://title.link.1)", + "http://from.url.1", + "First attachment text", + "Second attachment title (http://title.link.2)", + "http://from.url.2", + "Second attachment text", + ]), + }, )) def test_unwrap_attachments(case): result = wee_slack.unwrap_attachments( |