Skip to content

Commit

Permalink
fix tests, use lab template
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jul 31, 2019
1 parent 6f44d32 commit e44311d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions nbconvert/exporters/tests/test_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ def test_export_default(self):

def test_export_notebook(self):
"""
Can a HTMLExporter export using the 'notebook' template?
Can a HTMLExporter export using the 'lab' template?
"""
(output, resources) = HTMLExporter(template_name='notebook').from_filename(self._get_notebook())
(output, resources) = HTMLExporter(template_name='lab').from_filename(self._get_notebook())
assert len(output) > 0

def test_prompt_number(self):
"""
Does HTMLExporter properly format input and output prompts?
"""
(output, resources) = HTMLExporter(template_name='notebook').from_filename(
(output, resources) = HTMLExporter(template_name='lab').from_filename(
self._get_notebook(nb_name="prompt_numbers.ipynb"))
in_regex = r"In \[(.*)\]:"
out_regex = r"Out\[(.*)\]:"
Expand All @@ -74,7 +74,7 @@ def test_prompt_number(self):
}
}
)
exporter = HTMLExporter(config=no_prompt_conf, template_name='notebook')
exporter = HTMLExporter(config=no_prompt_conf, template_name='lab')
(output, resources) = exporter.from_filename(
self._get_notebook(nb_name="prompt_numbers.ipynb"))
in_regex = r"In \[(.*)\]:"
Expand Down
2 changes: 1 addition & 1 deletion nbconvert/tests/test_nbconvertapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def test_png_base64_html_ok(self):
"""Is embedded png data well formed in HTML?"""
with self.create_temp_cwd(['notebook2.ipynb']):
self.nbconvert('--log-level 0 --to HTML '
'notebook2.ipynb --template full')
'notebook2.ipynb --template lab')
assert os.path.isfile('notebook2.html')
with open('notebook2.html') as f:
assert "data:image/png;base64,b'" not in f.read()
Expand Down

0 comments on commit e44311d

Please sign in to comment.