From 80ea45971122082beae489704bc155595f72b108 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 15 Apr 2021 17:48:43 -0700 Subject: [PATCH] Suitable test name and comment --- bookwyrm/tests/management/test_populate_streams.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bookwyrm/tests/management/test_populate_streams.py b/bookwyrm/tests/management/test_populate_streams.py index caebbbe9..6a9b6b8a 100644 --- a/bookwyrm/tests/management/test_populate_streams.py +++ b/bookwyrm/tests/management/test_populate_streams.py @@ -30,13 +30,15 @@ class Activitystreams(TestCase): ) self.book = models.Edition.objects.create(title="test book") - def test_activitystream_class_ids(self, _): - """ the abstract base class for stream objects """ + def test_populate_streams(self, _): + """ make sure the function on the redis manager gets called """ with patch("bookwyrm.activitystreams.ActivityStream.add_status"): models.Comment.objects.create( user=self.local_user, content="hi", book=self.book ) - with patch("bookwyrm.activitystreams.ActivityStream.populate_store") as redis_mock: + with patch( + "bookwyrm.activitystreams.ActivityStream.populate_store" + ) as redis_mock: populate_streams() self.assertEqual(redis_mock.call_count, 6) # 2 users x 3 streams