From 3ce59d13d33cc730909786b204647b5a7b8ab866 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 8 Aug 2021 07:32:23 -0700 Subject: [PATCH] Mocks populate streams task --- bookwyrm/tests/management/test_populate_streams.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bookwyrm/tests/management/test_populate_streams.py b/bookwyrm/tests/management/test_populate_streams.py index c080e3fe..17247fd0 100644 --- a/bookwyrm/tests/management/test_populate_streams.py +++ b/bookwyrm/tests/management/test_populate_streams.py @@ -42,8 +42,6 @@ class Activitystreams(TestCase): user=self.local_user, content="hi", book=self.book ) - with patch( - "bookwyrm.activitystreams.ActivityStream.populate_store" - ) as redis_mock: + with patch("bookwyrm.activitystreams.populate_stream_task.delay") as redis_mock: populate_streams() self.assertEqual(redis_mock.call_count, 4) # 2 users x 2 streams