Skip to content

Commit

Permalink
Add coverage exceptions
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 4, 2015
1 parent 8199242 commit de42cfb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .coveragerc
@@ -1,6 +1,6 @@
[run]
source = nikola
omit = /tmp/*, _*
omit = /tmp/*, _*, nikola/packages, nikola/data, nikola/winutils
[report]
exclude_lines =
pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_gist.py
Expand Up @@ -304,7 +304,7 @@ def extendMarkdown(self, md, md_globals):
md.registerExtension(self)


def makeExtension(configs=None):
def makeExtension(configs=None): # pragma: no cover
return GistExtension(configs)

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_nikola.py
Expand Up @@ -58,5 +58,5 @@ def extendMarkdown(self, md, md_globals):
md.registerExtension(self)


def makeExtension(configs=None):
def makeExtension(configs=None): # pragma: no cover
return NikolaExtension(configs)
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/mdx_podcast.py
Expand Up @@ -84,7 +84,7 @@ def extendMarkdown(self, md, md_globals):
md.registerExtension(self)


def makeExtension(configs=None):
def makeExtension(configs=None): # pragma: no cover
return PodcastExtension(configs)

if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/slides.py
Expand Up @@ -50,7 +50,7 @@ class Slides(Directive):
has_content = True

def run(self):
if len(self.content) == 0:
if len(self.content) == 0: # pragma: no cover
return

if self.site.invariant: # for testing purposes
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/soundcloud.py
Expand Up @@ -57,7 +57,7 @@ def run(self):

def check_content(self):
""" Emit a deprecation warning if there is content """
if self.content:
if self.content: # pragma: no cover
raise self.warning("This directive does not accept content. The "
"'key=value' format for options is deprecated, "
"use ':key: value' instead")
Expand Down
2 changes: 1 addition & 1 deletion nikola/plugins/compile/rest/youtube.py
Expand Up @@ -75,7 +75,7 @@ def run(self):
return [nodes.raw('', CODE.format(**options), format='html')]

def check_content(self):
if self.content:
if self.content: # pragma: no cover
raise self.warning("This directive does not accept content. The "
"'key=value' format for options is deprecated, "
"use ':key: value' instead")

0 comments on commit de42cfb

Please sign in to comment.