forked from mirrors/bookwyrm
Fixes view tests
This commit is contained in:
parent
79875271f7
commit
3f02b5f6f2
2 changed files with 4 additions and 4 deletions
|
@ -248,7 +248,7 @@ class ObjectMixin(ActivitypubMixin):
|
||||||
actor=user.remote_id,
|
actor=user.remote_id,
|
||||||
to=activity_object['to'],
|
to=activity_object['to'],
|
||||||
cc=activity_object['cc'],
|
cc=activity_object['cc'],
|
||||||
object=activity_object,
|
object=self,
|
||||||
signature=signature,
|
signature=signature,
|
||||||
).serialize()
|
).serialize()
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ from django.test.client import RequestFactory
|
||||||
from bookwyrm import models, views
|
from bookwyrm import models, views
|
||||||
from bookwyrm.activitypub import ActivitypubResponse
|
from bookwyrm.activitypub import ActivitypubResponse
|
||||||
|
|
||||||
|
#pylint: disable=unused-argument
|
||||||
class ListViews(TestCase):
|
class ListViews(TestCase):
|
||||||
''' tag views'''
|
''' tag views'''
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
|
@ -45,7 +45,7 @@ class ListViews(TestCase):
|
||||||
with patch('bookwyrm.models.activitypub_mixin.broadcast_task.delay'):
|
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='Public list', user=self.local_user)
|
||||||
models.List.objects.create(
|
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 = self.factory.get('')
|
||||||
request.user = self.local_user
|
request.user = self.local_user
|
||||||
|
|
||||||
|
@ -164,7 +164,7 @@ class ListViews(TestCase):
|
||||||
with patch('bookwyrm.models.activitypub_mixin.broadcast_task.delay'):
|
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='Public list', user=self.local_user)
|
||||||
models.List.objects.create(
|
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 = self.factory.get('')
|
||||||
request.user = self.local_user
|
request.user = self.local_user
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue