Skip to content

Commit

Permalink
fix test for attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-muthwill committed Dec 10, 2024
1 parent ca661b2 commit f5dd973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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, '<h2>Attachments</h2>', html=True)
self.assertContains(response, '<a href="/tests/files/sample.txt">tests/files/sample.txt</a>', html=True)


class MessageAdminTests(AdminTestMixin, TestCase):
Expand Down

0 comments on commit f5dd973

Please sign in to comment.