From b52aa5bee9bfea772277aa3bc3012ca10abe1562 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 27 Jan 2021 09:31:01 -0800 Subject: [PATCH] Fixes status tests --- bookwyrm/tests/views/test_status.py | 3 ++- bookwyrm/views/shelf.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bookwyrm/tests/views/test_status.py b/bookwyrm/tests/views/test_status.py index 6e0c73df..50c458ac 100644 --- a/bookwyrm/tests/views/test_status.py +++ b/bookwyrm/tests/views/test_status.py @@ -176,7 +176,8 @@ class StatusViews(TestCase): reply = models.Status.replies(status).first() self.assertEqual(reply.content, '

right

') self.assertEqual(reply.user, user) - self.assertTrue(self.remote_user in reply.mention_users.all()) + # the mentioned user in the parent post is only included if @'ed + self.assertFalse(self.remote_user in reply.mention_users.all()) self.assertTrue(self.local_user in reply.mention_users.all()) def test_find_mentions(self): diff --git a/bookwyrm/views/shelf.py b/bookwyrm/views/shelf.py index 15b2bd28..ae8a494b 100644 --- a/bookwyrm/views/shelf.py +++ b/bookwyrm/views/shelf.py @@ -65,6 +65,7 @@ class Shelf(View): return TemplateResponse(request, 'shelf.html', data) @method_decorator(login_required, name='dispatch') + # pylint: disable=unused-argument def post(self, request, username, shelf_identifier): ''' edit a shelf ''' try: