Skip to content

Commit 648eac2

Browse files
committed
formatting test
1 parent 61c5543 commit 648eac2

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

tests/test_execute.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ def test_latex(doctree):
515515
(cell,) = tree.traverse(JupyterCellNode)
516516
assert cell.children[1].astext() == r"\int"
517517

518-
519-
def test_image_mimetype(doctree):
518+
519+
def test_image_mimetype_uri(doctree):
520520
# tests the image uri paths on conversion to docutils image nodes
521521
priority = ['image/png', 'image/jpeg', 'text/latex', 'text/plain']
522522
output_dir = '/_build/jupyter_execute'
@@ -530,9 +530,7 @@ def test_image_mimetype(doctree):
530530
[{'data': {'image/png': 'iVBOJggg==\n', 'text/plain': '<Figure size 432x288 with 1 Axes>'}, 'metadata': {'filenames': {'image/png': img_locs[1]}}, 'output_type': 'display_data'}]
531531
}]
532532

533-
index = 0
534-
for cell in cells:
533+
for index, cell in enumerate(cells):
535534
cell = from_dict(cell)
536535
output_node = cell_output_to_nodes(cell, priority, True, output_dir, None)
537536
assert output_node[0].attributes['uri'] == img_locs[index]
538-
index += 1

0 commit comments

Comments
 (0)