forked from mirrors/bookwyrm
Fixes unit tests
This commit is contained in:
parent
ffa354be7c
commit
592721ec76
1 changed files with 4 additions and 4 deletions
|
@ -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, '<p>quote body</p>')
|
||||
self.assertEqual(status.content, '<p>commentary</p>')
|
||||
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, '<p>test content in note</p>')
|
||||
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, '<p>test content in note</p>')
|
||||
self.assertEqual(status.reply_parent, self.status)
|
||||
self.assertTrue(
|
||||
models.Notification.objects.filter(user=self.local_user))
|
||||
|
|
Loading…
Reference in a new issue