Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Jan 23, 2017
1 parent 5120882 commit 7fc2ef4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions nbconvert/exporters/tests/test_templateexporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,12 @@ def test_fail_to_find_template_file(self):
with pytest.raises(TemplateNotFound):
out, resources = exporter.from_notebook_node(nb)



template_2 = 'does_not_exist'
exporter = TemplateExporter(template_file=template_2)
assert template_2 not in exporter.environment.list_templates(extensions=['tpl'])
nb = v4.new_notebook()
with pytest.raises(TemplateNotFound):
out, resources = exporter.from_notebook_node(nb)

def _make_exporter(self, config=None):
# Create the exporter instance, make sure to set a template name since
Expand Down

0 comments on commit 7fc2ef4

Please sign in to comment.