##// END OF EJS Templates
Fix test for svg2pdf preprocessor
Thomas Kluyver -
Show More
@@ -42,7 +42,9 b' class Testsvg2pdf(PreprocessorTestsBase):'
42 42 """Build a reveal slides notebook in memory for use with tests.
43 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 49 slide_metadata = {'slideshow' : {'slide_type': 'slide'}}
48 50 subslide_metadata = {'slideshow' : {'slide_type': 'subslide'}}
@@ -71,4 +73,4 b' class Testsvg2pdf(PreprocessorTestsBase):'
71 73 res = self.build_resources()
72 74 preprocessor = self.build_preprocessor()
73 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