##// END OF EJS Templates
Fix test for svg2pdf preprocessor
Thomas Kluyver -
Show More
@@ -42,7 +42,9 b' class Testsvg2pdf(PreprocessorTestsBase):'
42 """Build a reveal slides notebook in memory for use with tests.
42 """Build a reveal slides notebook in memory for use with tests.
43 Overrides base in PreprocessorTestsBase"""
43 Overrides base in PreprocessorTestsBase"""
44
44
45 outputs = [nbformat.new_output(output_type="image/svg+xml", output_svg=self.simple_svg)]
45 outputs = [nbformat.new_output(output_type='display_data',
46 data={'image/svg+xml':self.simple_svg})
47 ]
46
48
47 slide_metadata = {'slideshow' : {'slide_type': 'slide'}}
49 slide_metadata = {'slideshow' : {'slide_type': 'slide'}}
48 subslide_metadata = {'slideshow' : {'slide_type': 'subslide'}}
50 subslide_metadata = {'slideshow' : {'slide_type': 'subslide'}}
@@ -71,4 +73,4 b' class Testsvg2pdf(PreprocessorTestsBase):'
71 res = self.build_resources()
73 res = self.build_resources()
72 preprocessor = self.build_preprocessor()
74 preprocessor = self.build_preprocessor()
73 nb, res = preprocessor(nb, res)
75 nb, res = preprocessor(nb, res)
74 self.assertIn('application/pdf', nb.cells[0].outputs[0])
76 self.assertIn('application/pdf', nb.cells[0].outputs[0].data)
General Comments 0
You need to be logged in to leave comments. Login now