def test_export_pdf_barcode4j(self): config = Config() config.input = os.path.join(self.RESOURCES_DIR, 'reports', 'barcode4j.jrxml') config.output = os.path.join(self.RESOURCES_DIR, 'reports', 'barcode4j') config.dataFile = os.path.join(self.RESOURCES_DIR, 'barcode4j.xml') config.dbType = 'xml' config.xmlXpath = '/nalepka/ident' instance = Report(config, config.input) instance.fill() instance.export_pdf() self.assertEqual(os.path.isfile(config.output + '.pdf'), True)
def test_export_pdf(self): config = self.get_config_csv() instance = Report(config, config.input) instance.fill() instance.export_pdf() self.assertEqual(os.path.isfile(config.output + '.pdf'), True)