aboutsummaryrefslogtreecommitdiffstats
path: root/_pytest/test_unwrap_attachments.py
diff options
context:
space:
mode:
Diffstat (limited to '_pytest/test_unwrap_attachments.py')
-rw-r--r--_pytest/test_unwrap_attachments.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/_pytest/test_unwrap_attachments.py b/_pytest/test_unwrap_attachments.py
index ea3a35d..054c0af 100644
--- a/_pytest/test_unwrap_attachments.py
+++ b/_pytest/test_unwrap_attachments.py
@@ -267,6 +267,26 @@ import pytest
"| Second attachment text",
]),
},
+ {
+ 'input_message': {'attachments': [{
+ 'title': 'Title',
+ 'color': 'ff0000',
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "<[color 16711680]>|<[color reset]> Title",
+ ]),
+ },
+ {
+ 'input_message': {'attachments': [{
+ 'title': 'Title',
+ 'color': '#ff0000',
+ }]},
+ 'input_text_before': "",
+ 'output': "\n".join([
+ "<[color 16711680]>|<[color reset]> Title",
+ ]),
+ },
))
def test_unwrap_attachments(case):
result = wee_slack.unwrap_attachments(