Commit e01f0743 authored by Jérome Perrin's avatar Jérome Perrin

snap

parent 5a6bec0e
...@@ -113,6 +113,8 @@ class HTMLtoPDFConversionFontTestMixin: ...@@ -113,6 +113,8 @@ class HTMLtoPDFConversionFontTestMixin:
'''.format(**locals()) '''.format(**locals())
pdf_data = self._convert_html_to_pdf(src_html) pdf_data = self._convert_html_to_pdf(src_html)
with open('data/after_{}_{}.pdf'.format(self.id(), font), 'wb') as f:
f.write(pdf_data)
pdf_reader = PyPDF2.PdfFileReader(io.BytesIO((pdf_data))) pdf_reader = PyPDF2.PdfFileReader(io.BytesIO((pdf_data)))
self.assertEqual( self.assertEqual(
self.pdf_producer, self.pdf_producer,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment