1
0
Fork 0

A few more failing tests

This commit is contained in:
Mouse Reeve 2021-09-06 18:55:48 -07:00
parent 2653458e56
commit c56a9021b6
4 changed files with 8 additions and 3 deletions

View file

@ -35,7 +35,8 @@ class ReadThrough(TestCase):
with patch("bookwyrm.models.activitypub_mixin.broadcast_task.delay"):
self.client.force_login(self.user)
def test_create_basic_readthrough(self, delay_mock, _):
@patch("bookwyrm.activitystreams.remove_user_statuses_task.delay")
def test_create_basic_readthrough(self, delay_mock, *_):
"""A basic readthrough doesn't create a progress update"""
self.assertEqual(self.edition.readthrough_set.count(), 0)
@ -56,7 +57,8 @@ class ReadThrough(TestCase):
self.assertEqual(readthroughs[0].finish_date, None)
self.assertEqual(delay_mock.call_count, 1)
def test_create_progress_readthrough(self, delay_mock, _):
@patch("bookwyrm.activitystreams.remove_user_statuses_task.delay")
def test_create_progress_readthrough(self, delay_mock, *_):
"""a readthrough with progress"""
self.assertEqual(self.edition.readthrough_set.count(), 0)