two more mocks

This commit is contained in:
Mouse Reeve 2021-09-06 20:37:09 -07:00
parent 9988a3e82b
commit 0a9d515d45
2 changed files with 2 additions and 1 deletions

View file

@ -70,7 +70,7 @@ class InboxBlock(TestCase):
self.assertFalse(models.UserFollowRequest.objects.exists())
@patch("bookwyrm.activitystreams.remove_user_statuses_task.delay")
def test_handle_unblock(self):
def test_handle_unblock(self, _):
"""unblock a user"""
self.remote_user.blocks.add(self.local_user)

View file

@ -78,6 +78,7 @@ class ReadingViews(TestCase):
self.assertEqual(readthrough.book, self.book)
@patch("bookwyrm.activitystreams.add_book_statuses_task.delay")
@patch("bookwyrm.activitystreams.remove_book_statuses_task.delay")
def test_start_reading_reshelve(self, *_):
"""begin a book"""
to_read_shelf = self.local_user.shelf_set.get(identifier=models.Shelf.TO_READ)