File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2743,21 +2743,17 @@ def slide_1():
27432743
27442744 # Verify the notebook passed to SlidesExporter has the injected
27452745 # PNG fallback in its cell outputs.
2746- notebook = (
2747- mock_slides_exporter_instance .from_notebook_node .call_args [0 ][
2748- 0
2749- ]
2750- )
2746+ notebook = mock_slides_exporter_instance .from_notebook_node .call_args [
2747+ 0
2748+ ][0 ]
27512749 found_png = False
27522750 for cell in notebook .cells :
27532751 for output in cell .get ("outputs" , []):
27542752 data = output .get ("data" , {})
27552753 if "image/png" in data :
27562754 found_png = True
27572755 break
2758- assert found_png , (
2759- "Expected PNG fallback data in notebook cell outputs"
2760- )
2756+ assert found_png , "Expected PNG fallback data in notebook cell outputs"
27612757
27622758 finally :
27632759 if orig_nbconvert is not None :
@@ -2769,6 +2765,7 @@ def slide_1():
27692765 else :
27702766 sys .modules .pop ("playwright.async_api" , None )
27712767
2768+
27722769@pytest .mark .skipif (
27732770 not DependencyManager .nbformat .has (),
27742771 reason = "nbformat not installed" ,
You can’t perform that action at this time.
0 commit comments