##// END OF EJS Templates
Test no incorrect 'data:image/png;base64,b' in html files.
stonebig <stonebig> -
Show More
@@ -15,10 +15,12 b' Contains tests for the nbconvertapp'
15
15
16 import os
16 import os
17 import glob
17 import glob
18 import sys
18
19
19 from .base import TestsBase
20 from .base import TestsBase
20
21
21 from IPython.testing import decorators as dec
22 from IPython.testing import decorators as dec
23 from IPython.external.decorators import knownfailureif
22
24
23
25
24 #-----------------------------------------------------------------------------
26 #-----------------------------------------------------------------------------
@@ -104,6 +106,18 b' class TestNbConvertApp(TestsBase):'
104
106
105
107
106 @dec.onlyif_cmds_exist('pandoc')
108 @dec.onlyif_cmds_exist('pandoc')
109 @knownfailureif(sys.version_info[0] >= 3, "nbconvert html conversion fails for .png images on Python3 ")
110 def test_png_base64_html_ok(self):
111 """Is embedded png data well formed in HTML?"""
112 with self.create_temp_cwd(['notebook2.ipynb']):
113 self.call('nbconvert --log-level 0 --to HTML '
114 'notebook2.ipynb --template full')
115 assert os.path.isfile('notebook2.html')
116 with open('notebook2.html') as f:
117 assert "data:image/png;base64,b'" not in f.read()
118
119
120 @dec.onlyif_cmds_exist('pandoc')
107 def test_template(self):
121 def test_template(self):
108 """
122 """
109 Do export templates work?
123 Do export templates work?
General Comments 0
You need to be logged in to leave comments. Login now