From f5dd9739df54fe055fca8bddc2d81dc5bcecd8c5 Mon Sep 17 00:00:00 2001 From: Sebastian Muthwill Date: Tue, 10 Dec 2024 21:30:20 +0100 Subject: [PATCH] fix test for attachments --- tests/test_admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_admin.py b/tests/test_admin.py index 6ae80fbf..fac5354e 100644 --- a/tests/test_admin.py +++ b/tests/test_admin.py @@ -315,7 +315,7 @@ def test_message_with_attachment_admin(self): change_url = reverse('admin:newsletter_message_change', args=(self.message_with_attachment.pk,)) response = self.client.get(change_url) - self.assertContains(response, '

Attachments

', html=True) + self.assertContains(response, 'tests/files/sample.txt', html=True) class MessageAdminTests(AdminTestMixin, TestCase):