smartpush 1.4.8__py3-none-any.whl → 1.5.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- smartpush/export/basic/ExcelExportChecker.py +14 -12
- {smartpush-1.4.8.dist-info → smartpush-1.5.0.dist-info}/METADATA +1 -1
- {smartpush-1.4.8.dist-info → smartpush-1.5.0.dist-info}/RECORD +5 -5
- {smartpush-1.4.8.dist-info → smartpush-1.5.0.dist-info}/WHEEL +0 -0
- {smartpush-1.4.8.dist-info → smartpush-1.5.0.dist-info}/top_level.txt +0 -0
@@ -293,8 +293,6 @@ def check_excel_header_by_list(actual, expected, **kwargs):
|
|
293
293
|
@return:
|
294
294
|
@return:
|
295
295
|
"""
|
296
|
-
|
297
|
-
global diff
|
298
296
|
try:
|
299
297
|
if not isinstance(actual, io.BytesIO):
|
300
298
|
actual = read_excel_from_oss(actual)
|
@@ -304,13 +302,13 @@ def check_excel_header_by_list(actual, expected, **kwargs):
|
|
304
302
|
try:
|
305
303
|
diff = compare_lists(actual1, expected1)
|
306
304
|
assert not diff # 为空则错误
|
307
|
-
return True
|
308
|
-
except AssertionError
|
305
|
+
return True
|
306
|
+
except AssertionError:
|
309
307
|
print("actual:", actual1)
|
310
308
|
print("expected:", expected1)
|
311
|
-
return False
|
309
|
+
return False
|
312
310
|
except Exception as e:
|
313
|
-
|
311
|
+
raise e
|
314
312
|
|
315
313
|
|
316
314
|
def get_header_map_data(name_list):
|
@@ -323,12 +321,16 @@ def get_header_map_data(name_list):
|
|
323
321
|
"sendTypeName": "活动类型",
|
324
322
|
"activityName": "活动名称",
|
325
323
|
"sendTotal": "发送数",
|
326
|
-
"deliveryTotal": "
|
324
|
+
"deliveryTotal": "送达人数",
|
327
325
|
"deliveryRate": "送达率",
|
328
|
-
"openRate": ["打开率(打开数/送达数)", "打开数"],
|
329
|
-
"
|
330
|
-
"
|
331
|
-
"
|
326
|
+
# "openRate": ["打开率(打开数/送达数)", "打开数"],
|
327
|
+
"openRate": "打开率(打开数/送达数)",
|
328
|
+
# "noRepeatOpenRate": ["不重复打开率", "不重复打开"],
|
329
|
+
"noRepeatOpenRate": "不重复打开率",
|
330
|
+
# "clickRate": ["点击率(点击数/送达数)", "点击数"],
|
331
|
+
"clickRate": "点击率(点击数/送达数)",
|
332
|
+
# "noRepeatClickRate": ["不重复点击率", "不重复点击"],
|
333
|
+
"noRepeatClickRate": "不重复点击率",
|
332
334
|
"salesPriceTotal": "销售额",
|
333
335
|
"orderTotal": "订单数",
|
334
336
|
"averageOrderValue": "平均订单价值",
|
@@ -450,4 +452,4 @@ def check_field_format(actual_oss, **kwargs):
|
|
450
452
|
f"{actual_dict_key[key]} 表, 第{num}行{filed_key}列{kwargs['fileds'][key][filed_key]}格式不符合规范, 值为:{row[filed_key]}")
|
451
453
|
num += 1
|
452
454
|
print(errors if len(errors) > 0 else "都校验成功")
|
453
|
-
return False if len(errors) > 0 else True
|
455
|
+
return False if len(errors) > 0 else True
|
@@ -5,7 +5,7 @@ smartpush/base/faker_data.py,sha256=TOd5EKVImxZpsKEW_dtKa2iqiUGqU7OBkOM8pvqKVUc,
|
|
5
5
|
smartpush/base/request_base.py,sha256=Fn1uPWgaZQZdu8yyi2n13nuiKPVeR95iwx99sG6XGVU,574
|
6
6
|
smartpush/base/url_enum.py,sha256=REHYP_aa0xumLg8El-yrNRpablLnPEQpss8ZNPdkNtg,787
|
7
7
|
smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
|
8
|
-
smartpush/export/basic/ExcelExportChecker.py,sha256=
|
8
|
+
smartpush/export/basic/ExcelExportChecker.py,sha256=p3NIjZuXlCprIYkKQlRqoCQpU8shwa2S8k6LJZxnnF4,19957
|
9
9
|
smartpush/export/basic/GetOssUrl.py,sha256=LeF1y1_uJaYXth1KvO6mEDS29ezb9tliBv5SrbqYkXc,6136
|
10
10
|
smartpush/export/basic/ReadExcel.py,sha256=ZnG2mtYqLY-xuYx9SyulbdYUP_0E5jIeKDewfakAsTw,7342
|
11
11
|
smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0FD-gYE,70
|
@@ -22,7 +22,7 @@ smartpush/utils/ListDictUtils.py,sha256=Fm5_d7UyY6xB8gySMPdl5jIFSRhXZcYXdYW-_L1a
|
|
22
22
|
smartpush/utils/StringUtils.py,sha256=n8mo9k0JQN63MReImgv-66JxmmymOGknR8pH2fkQrAo,4139
|
23
23
|
smartpush/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
24
24
|
smartpush/utils/form_utils.py,sha256=ld-g_Dm_ZlnagQt7imYfUc87bcBRVlTctywuLtzmjXQ,849
|
25
|
-
smartpush-1.
|
26
|
-
smartpush-1.
|
27
|
-
smartpush-1.
|
28
|
-
smartpush-1.
|
25
|
+
smartpush-1.5.0.dist-info/METADATA,sha256=_d7i8OmR9fUZB0kjfo-zFSP2lzBmFA4fO-befH3b0uA,131
|
26
|
+
smartpush-1.5.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
27
|
+
smartpush-1.5.0.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
28
|
+
smartpush-1.5.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|