Skip to content
Permalink
Browse files
Add coverage exceptions
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 4, 2015
1 parent 8199242 commit de42cfbc1ee1bb3bdeea9b4b1648373baae41b81
@@ -1,6 +1,6 @@
[run]
source = nikola
omit = /tmp/*, _*
omit = /tmp/*, _*, nikola/packages, nikola/data, nikola/winutils
[report]
exclude_lines =
pragma: no cover
@@ -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__':
@@ -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)
@@ -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__':
@@ -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
@@ -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")
@@ -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.