Improves list curate page test

This commit is contained in:
Mouse Reeve 2021-12-30 12:55:40 -08:00
parent 1e879f66ac
commit 80f7c253de

View file

@ -347,9 +347,8 @@ class ListViews(TestCase):
"""there are so many views, this just makes sure it LOADS"""
view = views.Curate.as_view()
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.apply_async"):
models.List.objects.create(name="Public list", user=self.local_user)
models.List.objects.create(
name="Private list", privacy="direct", user=self.local_user
models.ListItem.objects.create(
user=self.local_user, book_list=self.list, book=self.book, approved=False, order=1
)
request = self.factory.get("")
request.user = self.local_user