Skip to content

Commit de42cfb

Browse files
committedJul 4, 2015
Add coverage exceptions
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 8199242 commit de42cfb

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed
 

‎.coveragerc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[run]
22
source = nikola
3-
omit = /tmp/*, _*
3+
omit = /tmp/*, _*, nikola/packages, nikola/data, nikola/winutils
44
[report]
55
exclude_lines =
66
pragma: no cover

‎nikola/plugins/compile/markdown/mdx_gist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def extendMarkdown(self, md, md_globals):
304304
md.registerExtension(self)
305305

306306

307-
def makeExtension(configs=None):
307+
def makeExtension(configs=None): # pragma: no cover
308308
return GistExtension(configs)
309309

310310
if __name__ == '__main__':

‎nikola/plugins/compile/markdown/mdx_nikola.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ def extendMarkdown(self, md, md_globals):
5858
md.registerExtension(self)
5959

6060

61-
def makeExtension(configs=None):
61+
def makeExtension(configs=None): # pragma: no cover
6262
return NikolaExtension(configs)

‎nikola/plugins/compile/markdown/mdx_podcast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def extendMarkdown(self, md, md_globals):
8484
md.registerExtension(self)
8585

8686

87-
def makeExtension(configs=None):
87+
def makeExtension(configs=None): # pragma: no cover
8888
return PodcastExtension(configs)
8989

9090
if __name__ == '__main__':

‎nikola/plugins/compile/rest/slides.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Slides(Directive):
5050
has_content = True
5151

5252
def run(self):
53-
if len(self.content) == 0:
53+
if len(self.content) == 0: # pragma: no cover
5454
return
5555

5656
if self.site.invariant: # for testing purposes

‎nikola/plugins/compile/rest/soundcloud.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def run(self):
5757

5858
def check_content(self):
5959
""" Emit a deprecation warning if there is content """
60-
if self.content:
60+
if self.content: # pragma: no cover
6161
raise self.warning("This directive does not accept content. The "
6262
"'key=value' format for options is deprecated, "
6363
"use ':key: value' instead")

‎nikola/plugins/compile/rest/youtube.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def run(self):
7575
return [nodes.raw('', CODE.format(**options), format='html')]
7676

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

0 commit comments

Comments
 (0)
Please sign in to comment.