aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unwrap_attachments.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-03-26 22:59:23 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-04-05 20:22:46 +0200
commita037db8cfe9d21d6faf68491c09f293d49902fc5 (patch)
tree7d56b0d37a9c12147090843eb125f7d8cc757906 /_pytest/test_unwrap_attachments.py
parent37f1f7be4b7a10847b0bf0d68875067096a883e5 (diff)
downloadwee-slack-a037db8cfe9d21d6faf68491c09f293d49902fc5.tar.gz
Include footer in attachments
Diffstat (limited to '_pytest/test_unwrap_attachments.py')
-rw-r--r--_pytest/test_unwrap_attachments.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py
index 3c8ac8b..5f76e57 100644
--- a/_pytest/test_unwrap_attachments.py
+++ b/_pytest/test_unwrap_attachments.py
@@ -177,6 +177,41 @@ import pytest
},
{
'input_message': {'attachments': [{
+ 'text': 'Some message',
+ 'footer': 'Thread in #general'
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "Some message",
+ "Thread in #general",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
+ 'ts': 1584986782,
+ 'text': 'Some message',
+ 'footer': 'Thread in #general'
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "Some message",
+ "Thread in #general | Mar 23, 2020",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
+ 'ts': '1584986782.261400',
+ 'text': 'Some message',
+ 'footer': 'Thread in #general'
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "Some message",
+ "Thread in #general | Mar 23, 2020",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
'title': 'Title',
'fields': [{
'title': 'First field title',