aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps/staff/tests
diff options
context:
space:
mode:
authorGravatar Akarys42 <[email protected]>2019-10-28 18:50:23 +0100
committerGravatar Akarys42 <[email protected]>2019-10-28 18:50:23 +0100
commit14cde62b4d8358032f1b1f706250efaaf9c646ea (patch)
treed27486e4e260621761dda3f4e21aed888bb15457 /pydis_site/apps/staff/tests
parentShow attachments in staff logs (diff)
Write tests for message.attachments
Diffstat (limited to 'pydis_site/apps/staff/tests')
-rw-r--r--pydis_site/apps/staff/tests/test_logs_view.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pydis_site/apps/staff/tests/test_logs_view.py b/pydis_site/apps/staff/tests/test_logs_view.py
index 32cb6bbf..b01e3f3e 100644
--- a/pydis_site/apps/staff/tests/test_logs_view.py
+++ b/pydis_site/apps/staff/tests/test_logs_view.py
@@ -37,6 +37,7 @@ class TestLogsView(TestCase):
channel_id=1984,
content='<em>I think my tape has run out...</em>',
embeds=[],
+ attachments=[],
deletion_context=cls.deletion_context,
)
@@ -101,6 +102,7 @@ class TestLogsView(TestCase):
channel_id=1984,
content='Does that mean this thing will halt?',
embeds=[cls.embed_one, cls.embed_two],
+ attachments=['https://http.cat/100', 'https://http.cat/402'],
deletion_context=cls.deletion_context,
)