tests: check generated PDF using bytes (#36515)
This commit is contained in:
parent
5793e5c509
commit
dabe208677
|
@ -2898,7 +2898,7 @@ def test_transform_to_pdf():
|
|||
instream = open(os.path.join(os.path.dirname(__file__), 'template.odt'), 'rb')
|
||||
outstream = transform_to_pdf(instream)
|
||||
assert outstream is not False
|
||||
assert outstream.read(10).startswith('%PDF-')
|
||||
assert outstream.read(10).startswith(b'%PDF-')
|
||||
|
||||
def test_export_to_model_image(pub):
|
||||
formdef = FormDef()
|
||||
|
|
Loading…
Reference in New Issue