Beispiel #1
0
 def run_pdf_report():
     with open('./src/reports/barcode.data.json') as f:
         event = json.loads(f.read())
         event['eventName'] = '/pdf'
         return Response(response=call(command=["node", "dist/app.js"],
                                       event=event),
                         mimetype="application/pdf")
Beispiel #2
0
 def run_barcode_test_report():
     with open('./src/examples/barcode.data.json') as f:
         event = json.loads(f.read())
         event['eventName'] = '/barcode-test'
         return call(command=["node", "dist/app.js"], event=event)
Beispiel #3
0
 def run_fba_report():
     with open('./src/reports/barcode.data.json') as f:
         event = json.loads(f.read())
         event['eventName'] = '/fba-a4'
         return call(command=["node", "dist/app.js"], event=event)