Updated fpdf to the last version (py3 compatible), fix contrib/appconfig
This commit is contained in:
@@ -8,7 +8,7 @@ import os
|
||||
from .fix_path import fix_sys_path
|
||||
|
||||
fix_sys_path(__file__)
|
||||
|
||||
from gluon._compat import to_bytes
|
||||
from gluon.storage import Storage
|
||||
from gluon.contrib import fpdf as fpdf
|
||||
from gluon.contrib import pyfpdf as pyfpdf
|
||||
@@ -42,8 +42,8 @@ class TestContribs(unittest.TestCase):
|
||||
pdf.write(5, 'hello world')
|
||||
pdf_out = pdf.output('', 'S')
|
||||
|
||||
self.assertTrue(fpdf.FPDF_VERSION in pdf_out, 'version string')
|
||||
self.assertTrue('hello world' in pdf_out, 'sample message')
|
||||
self.assertTrue(to_bytes(fpdf.FPDF_VERSION) in pdf_out, 'version string')
|
||||
self.assertTrue(to_bytes('hello world') in pdf_out, 'sample message')
|
||||
|
||||
def test_appconfig(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user