From 069378f95ca09a73252cefadd5cf8d2e4a976a61 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Thu, 26 Mar 2020 22:59:39 +0100 Subject: Include files in attachments --- _pytest/test_unwrap_attachments.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to '_pytest') 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 @@ -210,6 +210,22 @@ import pytest "Thread in #general | Mar 23, 2020", ]), }, + { + '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', -- cgit