mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 20:11:14 +00:00
Fixes status tests
This commit is contained in:
parent
1a54ed875b
commit
b52aa5bee9
2 changed files with 3 additions and 1 deletions
|
@ -176,7 +176,8 @@ class StatusViews(TestCase):
|
|||
reply = models.Status.replies(status).first()
|
||||
self.assertEqual(reply.content, '<p>right</p>')
|
||||
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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue