Ignore certain lines for code coverage.
svn path=/plone.app.discussion/trunk/; revision=40494
This commit is contained in:
parent
f5cf756e31
commit
603bcf3547
@ -211,7 +211,7 @@ class CommentForm(extensible.ExtensibleForm, form.Form):
|
||||
def handleCancel(self, action):
|
||||
# This method should never be called, it's only there to show
|
||||
# a cancel button that is handled by a jQuery method.
|
||||
pass
|
||||
pass # pragma: no cover
|
||||
|
||||
|
||||
class CommentsViewlet(ViewletBase):
|
||||
@ -261,7 +261,7 @@ class CommentsViewlet(ViewletBase):
|
||||
self.get_replies(workflow_actions).next()
|
||||
return True
|
||||
except StopIteration:
|
||||
pass
|
||||
pass # pragma: no cover
|
||||
return False
|
||||
|
||||
def get_replies(self, workflow_actions=False):
|
||||
|
Loading…
Reference in New Issue
Block a user