Fixes status tests
This commit is contained in:
parent
1a54ed875b
commit
b52aa5bee9
|
@ -176,7 +176,8 @@ class StatusViews(TestCase):
|
||||||
reply = models.Status.replies(status).first()
|
reply = models.Status.replies(status).first()
|
||||||
self.assertEqual(reply.content, '<p>right</p>')
|
self.assertEqual(reply.content, '<p>right</p>')
|
||||||
self.assertEqual(reply.user, user)
|
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())
|
self.assertTrue(self.local_user in reply.mention_users.all())
|
||||||
|
|
||||||
def test_find_mentions(self):
|
def test_find_mentions(self):
|
||||||
|
|
|
@ -65,6 +65,7 @@ class Shelf(View):
|
||||||
return TemplateResponse(request, 'shelf.html', data)
|
return TemplateResponse(request, 'shelf.html', data)
|
||||||
|
|
||||||
@method_decorator(login_required, name='dispatch')
|
@method_decorator(login_required, name='dispatch')
|
||||||
|
# pylint: disable=unused-argument
|
||||||
def post(self, request, username, shelf_identifier):
|
def post(self, request, username, shelf_identifier):
|
||||||
''' edit a shelf '''
|
''' edit a shelf '''
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue