From c8118c9bf458ddc183efd0879e8717ce75144504 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Fri, 26 Mar 2021 12:52:04 -0700 Subject: [PATCH] Updates activity streams tests --- bookwyrm/tests/test_activitystreams.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bookwyrm/tests/test_activitystreams.py b/bookwyrm/tests/test_activitystreams.py index d7a3d4eb6..88ca4693b 100644 --- a/bookwyrm/tests/test_activitystreams.py +++ b/bookwyrm/tests/test_activitystreams.py @@ -67,7 +67,7 @@ class Activitystreams(TestCase): ) status.mention_users.add(self.local_user) users = self.test_stream.stream_users(status) - self.assertIsNone(users) + self.assertEqual(users, []) status = models.Comment.objects.create( user=self.remote_user, @@ -167,7 +167,7 @@ class Activitystreams(TestCase): user=self.remote_user, content="hi", privacy="public" ) users = activitystreams.LocalStream().stream_users(status) - self.assertIsNone(users) + self.assertEqual(users, []) def test_localstream_stream_users_local_status(self, *_): """ get a list of users that should see a status """ @@ -184,7 +184,7 @@ class Activitystreams(TestCase): user=self.local_user, content="hi", privacy="unlisted" ) users = activitystreams.LocalStream().stream_users(status) - self.assertIsNone(users) + self.assertEqual(users, []) def test_federatedstream_stream_users(self, *_): """ get a list of users that should see a status """ @@ -201,4 +201,4 @@ class Activitystreams(TestCase): user=self.remote_user, content="hi", privacy="unlisted" ) users = activitystreams.FederatedStream().stream_users(status) - self.assertIsNone(users) + self.assertEqual(users, [])