Adds mock to list items creation
This commit is contained in:
parent
8382d1a684
commit
a8973336d9
|
@ -69,6 +69,7 @@ class ListActionViews(TestCase):
|
||||||
|
|
||||||
def test_delete_list(self):
|
def test_delete_list(self):
|
||||||
"""delete an entire list"""
|
"""delete an entire list"""
|
||||||
|
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
|
||||||
models.ListItem.objects.create(
|
models.ListItem.objects.create(
|
||||||
book_list=self.list,
|
book_list=self.list,
|
||||||
user=self.local_user,
|
user=self.local_user,
|
||||||
|
|
Loading…
Reference in New Issue