A few more failing tests
This commit is contained in:
parent
2653458e56
commit
c56a9021b6
4 changed files with 8 additions and 3 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue