forked from mirrors/bookwyrm
Improves list curate page test
This commit is contained in:
parent
1e879f66ac
commit
80f7c253de
1 changed files with 2 additions and 3 deletions
|
@ -347,9 +347,8 @@ class ListViews(TestCase):
|
||||||
"""there are so many views, this just makes sure it LOADS"""
|
"""there are so many views, this just makes sure it LOADS"""
|
||||||
view = views.Curate.as_view()
|
view = views.Curate.as_view()
|
||||||
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
|
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
|
||||||
models.List.objects.create(name="Public list", user=self.local_user)
|
models.ListItem.objects.create(
|
||||||
models.List.objects.create(
|
user=self.local_user, book_list=self.list, book=self.book, approved=False, order=1
|
||||||
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