Fixing broken test on travis

This commit is contained in:
Low Kian Seong 2015-05-13 20:03:11 +08:00
parent 4556486082
commit da84d4d642
5 changed files with 8 additions and 8 deletions

View File

@ -104,4 +104,4 @@ class EditCommentForm(CommentForm):
EditComment = wrap_form(EditCommentForm) EditComment = wrap_form(EditCommentForm)
#EOF # EOF

View File

@ -138,7 +138,7 @@ class RegistryTest(unittest.TestCase):
False False
) )
#def test_user_notification_enabled(self): # def test_user_notification_enabled(self):
# # Check show_commenter_image record # # Check show_commenter_image record
# show_commenter_image = self.registry.records['plone.app.discussion.' + # show_commenter_image = self.registry.records['plone.app.discussion.' +
# 'interfaces.IDiscussionSettings.user_notification_enabled'] # 'interfaces.IDiscussionSettings.user_notification_enabled']

View File

@ -392,7 +392,7 @@ class ConversationTest(unittest.TestCase):
self.assertTrue((new_id2, comment2) in conversation.iteritems()) self.assertTrue((new_id2, comment2) in conversation.iteritems())
# TODO test acquisition wrapping # TODO test acquisition wrapping
#self.assertTrue(aq_base(aq_parent(comment1)) is conversation) # self.assertTrue(aq_base(aq_parent(comment1)) is conversation)
def test_total_comments(self): def test_total_comments(self):
# Create a conversation. In this case we doesn't assign it to an # Create a conversation. In this case we doesn't assign it to an

View File

@ -95,9 +95,9 @@ class ConversationIndexersTest(unittest.TestCase):
def test_conversation_commentators(self): def test_conversation_commentators(self):
pass pass
#self.assertEqual(catalog.commentators(self.portal.doc1)(), # self.assertEqual(catalog.commentators(self.portal.doc1)(),
# ('Jim', 'Emma', 'Lukas')) # ('Jim', 'Emma', 'Lukas'))
#self.assertTrue(isinstance(catalog.commentators, # self.assertTrue(isinstance(catalog.commentators,
# DelegatingIndexerFactory)) # DelegatingIndexerFactory))

View File

@ -51,7 +51,7 @@ class WorkflowSetupTest(unittest.TestCase):
) )
def test_review_comments_permission(self): def test_review_comments_permission(self):
#'Review comments' in self.portal.permissionsOfRole('Admin') # 'Review comments' in self.portal.permissionsOfRole('Admin')
setRoles(self.portal, TEST_USER_ID, ['Reviewer']) setRoles(self.portal, TEST_USER_ID, ['Reviewer'])
self.assertTrue(self.portal.portal_membership.checkPermission( self.assertTrue(self.portal.portal_membership.checkPermission(
@ -146,8 +146,8 @@ class CommentOneStateWorkflowTest(unittest.TestCase):
"""Make sure published comments can be viewed by everyone. """Make sure published comments can be viewed by everyone.
""" """
# Owner is allowed # Owner is allowed
#self.login(default_user) # self.login(default_user)
#self.assertTrue(checkPerm(View, self.doc)) # self.assertTrue(checkPerm(View, self.doc))
# Member is allowed # Member is allowed
login(self.portal, 'member') login(self.portal, 'member')
self.assertTrue(checkPerm(View, self.comment)) self.assertTrue(checkPerm(View, self.comment))