From 592721ec761482a46ff4a85f28b2c64bf62b6cd2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 19 Dec 2020 20:26:29 -0800 Subject: [PATCH] Fixes unit tests --- bookwyrm/tests/test_incoming.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bookwyrm/tests/test_incoming.py b/bookwyrm/tests/test_incoming.py index 2cc4c1f44..e0c376484 100644 --- a/bookwyrm/tests/test_incoming.py +++ b/bookwyrm/tests/test_incoming.py @@ -262,8 +262,8 @@ class Incoming(TestCase): status = models.Quotation.objects.get() self.assertEqual( status.remote_id, 'https://example.com/user/mouse/quotation/13') - self.assertEqual(status.quote, 'quote body') - self.assertEqual(status.content, 'commentary') + self.assertEqual(status.quote, '

quote body

') + self.assertEqual(status.content, '

commentary

') self.assertEqual(status.user, self.local_user) self.assertEqual(models.Status.objects.count(), 2) @@ -284,7 +284,7 @@ class Incoming(TestCase): incoming.handle_create(activity) status = models.Status.objects.last() - self.assertEqual(status.content, 'test content in note') + self.assertEqual(status.content, '

test content in note

') self.assertEqual(status.mention_users.first(), self.local_user) self.assertTrue( models.Notification.objects.filter(user=self.local_user).exists()) @@ -306,7 +306,7 @@ class Incoming(TestCase): incoming.handle_create(activity) status = models.Status.objects.last() - self.assertEqual(status.content, 'test content in note') + self.assertEqual(status.content, '

test content in note

') self.assertEqual(status.reply_parent, self.status) self.assertTrue( models.Notification.objects.filter(user=self.local_user))