smartpush 1.4.8__py3-none-any.whl → 1.4.9__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 +5 -7
- {smartpush-1.4.8.dist-info → smartpush-1.4.9.dist-info}/METADATA +1 -1
- {smartpush-1.4.8.dist-info → smartpush-1.4.9.dist-info}/RECORD +5 -5
- {smartpush-1.4.8.dist-info → smartpush-1.4.9.dist-info}/WHEEL +0 -0
- {smartpush-1.4.8.dist-info → smartpush-1.4.9.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):
|
@@ -450,4 +448,4 @@ def check_field_format(actual_oss, **kwargs):
|
|
450
448
|
f"{actual_dict_key[key]} 表, 第{num}行{filed_key}列{kwargs['fileds'][key][filed_key]}格式不符合规范, 值为:{row[filed_key]}")
|
451
449
|
num += 1
|
452
450
|
print(errors if len(errors) > 0 else "都校验成功")
|
453
|
-
return False if len(errors) > 0 else True
|
451
|
+
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=KjhUx30LfiXSn0CJA1QBWeTxf0CIYxgu7cLijSPXcDo,19728
|
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.4.
|
26
|
-
smartpush-1.4.
|
27
|
-
smartpush-1.4.
|
28
|
-
smartpush-1.4.
|
25
|
+
smartpush-1.4.9.dist-info/METADATA,sha256=pRpMmf1bcGoRa5yftdmeeyyGZLZM5GW7bkYiNiQZGJo,131
|
26
|
+
smartpush-1.4.9.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
27
|
+
smartpush-1.4.9.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
28
|
+
smartpush-1.4.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|