diff --git a/speedtest_sync.py b/speedtest_sync.py index b7c4b19..1f5d84b 100644 --- a/speedtest_sync.py +++ b/speedtest_sync.py @@ -127,34 +127,6 @@ def process_file(data): } - -# invoice_files = [ -# ('invoice_file', ('invoice.pdf', open("test_samples/20220303025923NHNE_20220222_Starhub_Order_Confirmation_by_Email.pdf", "rb").read())), -# ] -invoice_files = [ - ('invoice_file', ('invoice.jpg', open("test_samples/sbt/invoice.jpg", "rb").read())), -] -imei_files = [ - ('imei_files', ("test_samples/sbt/imei1.jpg", open("test_samples/sbt/imei1.jpg", "rb").read(), 'application/octet-stream')), - ('imei_files', ("test_samples/sbt/imei2.jpg", open("test_samples/sbt/imei1.jpg", "rb").read(), 'application/octet-stream')), - # ('imei_files', ("test_samples/sbt/imei3.jpg", open("test_samples/sbt/imei3.jpg", "rb").read())), - # ('imei_files', ("test_samples/sbt/imei4.jpeg", open("test_samples/sbt/imei4.jpeg", "rb").read())), - # ('imei_files', ("test_samples/sbt/imei5.jpg", open("test_samples/sbt/imei5.jpg", "rb").read())), -] -def get_imei_files(): - num_files = random.randint(1, len(imei_files) + 1) - files = imei_files[:num_files] - # print("Num of imei files:", len(files)) - return files -# def get_files(): -# return imei_files - # return invoice_files + get_imei_files() -def get_files(): - return { - 'invoice_file': ('invoice.jpg', open("test_samples/sbt/invoice.jpg", "rb").read()), - 'imei_files': ("test_samples/sbt/imei1.jpg", open("test_samples/sbt/imei1.jpg", "rb").read(), 'application/octet-stream'), - 'processType': 12, - } def gen_input(num_input): for _ in range(num_input): yield (None, token)