From da84d4d6421c6d171c1d9f2727548dbb5883858e Mon Sep 17 00:00:00 2001 From: Low Kian Seong Date: Wed, 13 May 2015 20:03:11 +0800 Subject: [PATCH] Fixing broken test on travis --- plone/app/discussion/browser/comment.py | 2 +- plone/app/discussion/tests/test_controlpanel.py | 2 +- plone/app/discussion/tests/test_conversation.py | 2 +- plone/app/discussion/tests/test_indexers.py | 4 ++-- plone/app/discussion/tests/test_workflow.py | 6 +++--- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/plone/app/discussion/browser/comment.py b/plone/app/discussion/browser/comment.py index d17b666..85ef885 100644 --- a/plone/app/discussion/browser/comment.py +++ b/plone/app/discussion/browser/comment.py @@ -104,4 +104,4 @@ class EditCommentForm(CommentForm): EditComment = wrap_form(EditCommentForm) -#EOF +# EOF diff --git a/plone/app/discussion/tests/test_controlpanel.py b/plone/app/discussion/tests/test_controlpanel.py index 4308e73..2f9bdcd 100644 --- a/plone/app/discussion/tests/test_controlpanel.py +++ b/plone/app/discussion/tests/test_controlpanel.py @@ -138,7 +138,7 @@ class RegistryTest(unittest.TestCase): False ) - #def test_user_notification_enabled(self): + # def test_user_notification_enabled(self): # # Check show_commenter_image record # show_commenter_image = self.registry.records['plone.app.discussion.' + # 'interfaces.IDiscussionSettings.user_notification_enabled'] diff --git a/plone/app/discussion/tests/test_conversation.py b/plone/app/discussion/tests/test_conversation.py index ff8a6fc..d30019d 100644 --- a/plone/app/discussion/tests/test_conversation.py +++ b/plone/app/discussion/tests/test_conversation.py @@ -392,7 +392,7 @@ class ConversationTest(unittest.TestCase): self.assertTrue((new_id2, comment2) in conversation.iteritems()) # 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): # Create a conversation. In this case we doesn't assign it to an diff --git a/plone/app/discussion/tests/test_indexers.py b/plone/app/discussion/tests/test_indexers.py index 0c599f0..37f1264 100644 --- a/plone/app/discussion/tests/test_indexers.py +++ b/plone/app/discussion/tests/test_indexers.py @@ -95,9 +95,9 @@ class ConversationIndexersTest(unittest.TestCase): def test_conversation_commentators(self): pass - #self.assertEqual(catalog.commentators(self.portal.doc1)(), + # self.assertEqual(catalog.commentators(self.portal.doc1)(), # ('Jim', 'Emma', 'Lukas')) - #self.assertTrue(isinstance(catalog.commentators, + # self.assertTrue(isinstance(catalog.commentators, # DelegatingIndexerFactory)) diff --git a/plone/app/discussion/tests/test_workflow.py b/plone/app/discussion/tests/test_workflow.py index 2c66cb7..d8dcff3 100644 --- a/plone/app/discussion/tests/test_workflow.py +++ b/plone/app/discussion/tests/test_workflow.py @@ -51,7 +51,7 @@ class WorkflowSetupTest(unittest.TestCase): ) 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']) self.assertTrue(self.portal.portal_membership.checkPermission( @@ -146,8 +146,8 @@ class CommentOneStateWorkflowTest(unittest.TestCase): """Make sure published comments can be viewed by everyone. """ # Owner is allowed - #self.login(default_user) - #self.assertTrue(checkPerm(View, self.doc)) + # self.login(default_user) + # self.assertTrue(checkPerm(View, self.doc)) # Member is allowed login(self.portal, 'member') self.assertTrue(checkPerm(View, self.comment))