diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-03-26 22:59:39 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-05 20:22:46 +0200 |
commit | 069378f95ca09a73252cefadd5cf8d2e4a976a61 (patch) | |
tree | b20d968cfb04f96eb6b104b529c7e5ac567d3bf7 /_pytest | |
parent | a037db8cfe9d21d6faf68491c09f293d49902fc5 (diff) | |
download | wee-slack-069378f95ca09a73252cefadd5cf8d2e4a976a61.tar.gz |
Include files in attachments
Diffstat (limited to '_pytest')
-rw-r--r-- | _pytest/test_unwrap_attachments.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py index 5f76e57..2541538 100644 --- a/_pytest/test_unwrap_attachments.py +++ b/_pytest/test_unwrap_attachments.py @@ -212,6 +212,22 @@ import pytest }, { 'input_message': {'attachments': [{ + 'text': 'Original message', + 'files': [ + { + 'title': 'File', + 'url_private': 'http://link', + } + ], + }]}, + 'input_text_before': "", + 'output': "\n".join([ + "Original message", + "http://link (File)", + ]), + }, + { + 'input_message': {'attachments': [{ 'title': 'Title', 'fields': [{ 'title': 'First field title', |