forked from mirrors/bookwyrm
two more mocks
This commit is contained in:
parent
9988a3e82b
commit
0a9d515d45
2 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,7 @@ class InboxBlock(TestCase):
|
||||||
self.assertFalse(models.UserFollowRequest.objects.exists())
|
self.assertFalse(models.UserFollowRequest.objects.exists())
|
||||||
|
|
||||||
@patch("bookwyrm.activitystreams.remove_user_statuses_task.delay")
|
@patch("bookwyrm.activitystreams.remove_user_statuses_task.delay")
|
||||||
def test_handle_unblock(self):
|
def test_handle_unblock(self, _):
|
||||||
"""unblock a user"""
|
"""unblock a user"""
|
||||||
self.remote_user.blocks.add(self.local_user)
|
self.remote_user.blocks.add(self.local_user)
|
||||||
|
|
||||||
|
|
|
@ -78,6 +78,7 @@ class ReadingViews(TestCase):
|
||||||
self.assertEqual(readthrough.book, self.book)
|
self.assertEqual(readthrough.book, self.book)
|
||||||
|
|
||||||
@patch("bookwyrm.activitystreams.add_book_statuses_task.delay")
|
@patch("bookwyrm.activitystreams.add_book_statuses_task.delay")
|
||||||
|
@patch("bookwyrm.activitystreams.remove_book_statuses_task.delay")
|
||||||
def test_start_reading_reshelve(self, *_):
|
def test_start_reading_reshelve(self, *_):
|
||||||
"""begin a book"""
|
"""begin a book"""
|
||||||
to_read_shelf = self.local_user.shelf_set.get(identifier=models.Shelf.TO_READ)
|
to_read_shelf = self.local_user.shelf_set.get(identifier=models.Shelf.TO_READ)
|
||||||
|
|
Loading…
Reference in a new issue