Skip to content

Commit f5dd973

Browse files
fix test for attachments
1 parent ca661b2 commit f5dd973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def test_message_with_attachment_admin(self):
315315

316316
change_url = reverse('admin:newsletter_message_change', args=(self.message_with_attachment.pk,))
317317
response = self.client.get(change_url)
318-
self.assertContains(response, '<h2>Attachments</h2>', html=True)
318+
self.assertContains(response, '<a href="/tests/files/sample.txt">tests/files/sample.txt</a>', html=True)
319319

320320

321321
class MessageAdminTests(AdminTestMixin, TestCase):

0 commit comments

Comments
 (0)