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"""
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue