Fixes view tests

This commit is contained in:
Mouse Reeve 2021-02-17 13:34:36 -08:00
parent 79875271f7
commit 3f02b5f6f2
2 changed files with 4 additions and 4 deletions

View file

@ -248,7 +248,7 @@ class ObjectMixin(ActivitypubMixin):
actor=user.remote_id,
to=activity_object['to'],
cc=activity_object['cc'],
object=activity_object,
object=self,
signature=signature,
).serialize()

View file

@ -9,7 +9,7 @@ from django.test.client import RequestFactory
from bookwyrm import models, views
from bookwyrm.activitypub import ActivitypubResponse
#pylint: disable=unused-argument
class ListViews(TestCase):
''' tag views'''
def setUp(self):
@ -45,7 +45,7 @@ class ListViews(TestCase):
with patch('bookwyrm.models.activitypub_mixin.broadcast_task.delay'):
models.List.objects.create(name='Public list', user=self.local_user)
models.List.objects.create(
name='Private list', privacy='private', user=self.local_user)
name='Private list', privacy='direct', user=self.local_user)
request = self.factory.get('')
request.user = self.local_user
@ -164,7 +164,7 @@ class ListViews(TestCase):
with patch('bookwyrm.models.activitypub_mixin.broadcast_task.delay'):
models.List.objects.create(name='Public list', user=self.local_user)
models.List.objects.create(
name='Private list', privacy='private', user=self.local_user)
name='Private list', privacy='direct', user=self.local_user)
request = self.factory.get('')
request.user = self.local_user