smartpush 1.3.0__tar.gz → 1.3.1__tar.gz
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-1.3.0 → smartpush-1.3.1}/PKG-INFO +1 -1
- {smartpush-1.3.0 → smartpush-1.3.1}/setup.py +1 -1
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/export/basic/ExcelExportChecker.py +3 -7
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/test.py +3 -3
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush.egg-info/PKG-INFO +1 -1
- {smartpush-1.3.0 → smartpush-1.3.1}/README.md +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/setup.cfg +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/__init__.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/export/__init__.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/export/basic/GetOssUrl.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/export/basic/ReadExcel.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/export/basic/__init__.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/get_jira_info.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/utils/DataTypeUtils.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/utils/StringUtils.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush/utils/__init__.py +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush.egg-info/SOURCES.txt +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush.egg-info/dependency_links.txt +0 -0
- {smartpush-1.3.0 → smartpush-1.3.1}/smartpush.egg-info/top_level.txt +0 -0
@@ -111,14 +111,10 @@ def check_excel_content_including_expected(actual, expected, expected_oss, **kwa
|
|
111
111
|
return (False, {"与期望结果存在差异": missing_items}) if missing_items else (True, "校验期望结果包含校验通过")
|
112
112
|
|
113
113
|
|
114
|
-
def find_missing_elements(
|
114
|
+
def find_missing_elements(dict1, dict2):
|
115
115
|
missing = []
|
116
|
-
|
117
|
-
|
118
|
-
if sorted_list1 == sorted_list2:
|
119
|
-
return missing
|
120
|
-
for element in list1:
|
121
|
-
if element not in list2:
|
116
|
+
for element in dict1:
|
117
|
+
if element not in dict2:
|
122
118
|
missing.append(element)
|
123
119
|
return missing
|
124
120
|
|
@@ -24,15 +24,15 @@ if __name__ == '__main__':
|
|
24
24
|
reqHeaders = {
|
25
25
|
'cookie': 'osudb_appid=SMARTPUSH;osudb_oar=#01#SID0000123BL6ciRHRKpvOm/vWT9OS9brpfhSErcOdgeXJc0RJFopg83z0N3RzDE4w2DE5cQj6ALkLP8vG6Rhs0sR7NfToZvCLWXdQtYk6DJoKe4tqdo4kNcIc9F5obzLuyRmwGy9CZKcg/bMlmNyDZwBI1SIO;osudb_subappid=1;osudb_uid=4213785247;ecom_http_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3NDM4NDI1NTIsImp0aSI6IjEwNGQwOTVjLTA3MDItNDI5MC1iZjQzLWQ4YTVhNjdmNDM2NSIsInVzZXJJbmZvIjp7ImlkIjowLCJ1c2VySWQiOiI0MjEzNzg1MjQ3IiwidXNlcm5hbWUiOiIiLCJlbWFpbCI6ImZlbGl4LnNoYW9Ac2hvcGxpbmVhcHAuY29tIiwidXNlclJvbGUiOiJvd25lciIsInBsYXRmb3JtVHlwZSI6Nywic3ViUGxhdGZvcm0iOjEsInBob25lIjoiIiwibGFuZ3VhZ2UiOiJ6aC1oYW5zLWNuIiwiYXV0aFR5cGUiOiIiLCJhdHRyaWJ1dGVzIjp7ImNvdW50cnlDb2RlIjoiQ04iLCJjdXJyZW5jeSI6IkpQWSIsImN1cnJlbmN5U3ltYm9sIjoiSlDCpSIsImRvbWFpbiI6InNtYXJ0cHVzaDQubXlzaG9wbGluZXN0Zy5jb20iLCJsYW5ndWFnZSI6ImVuIiwibWVyY2hhbnRFbWFpbCI6ImZlbGl4LnNoYW9Ac2hvcGxpbmUuY29tIiwibWVyY2hhbnROYW1lIjoiU21hcnRQdXNoNF9lYzJf6Ieq5Yqo5YyW5bqX6ZO6IiwicGhvbmUiOiIiLCJzY29wZUNoYW5nZWQiOmZhbHNlLCJzdGFmZkxhbmd1YWdlIjoiemgtaGFucy1jbiIsInN0YXR1cyI6MCwidGltZXpvbmUiOiJBc2lhL01hY2FvIn0sInN0b3JlSWQiOiIxNjQ0Mzk1OTIwNDQ0IiwiaGFuZGxlIjoic21hcnRwdXNoNCIsImVudiI6IkNOIiwic3RlIjoiIiwidmVyaWZ5IjoiIn0sImxvZ2luVGltZSI6MTc0MTI1MDU1MjI4Miwic2NvcGUiOlsiZW1haWwtbWFya2V0IiwiY29va2llIiwic2wtZWNvbS1lbWFpbC1tYXJrZXQtbmV3LXRlc3QiLCJlbWFpbC1tYXJrZXQtbmV3LWRldi1mcyIsImFwaS11Yy1lYzIiLCJhcGktc3UtZWMyIiwiYXBpLWVtLWVjMiIsImZsb3ctcGx1Z2luIl0sImNsaWVudF9pZCI6ImVtYWlsLW1hcmtldCJ9.SjeTCLaZqbEFEFNeKe_EjrwmR0LdEYO9697ymVNzf5Q;',
|
26
26
|
'Content-Type': 'application/json'}
|
27
|
-
actual_oss = get_oss_address_with_retry(11911, host, reqHeaders, import_requestParam, is_import=True)
|
28
|
-
actual_oss = get_oss_address_with_retry(11896, host, reqHeaders, export_requestParam)
|
27
|
+
# actual_oss = get_oss_address_with_retry(11911, host, reqHeaders, import_requestParam, is_import=True)
|
28
|
+
# actual_oss = get_oss_address_with_retry(11896, host, reqHeaders, export_requestParam)
|
29
29
|
# # res=read_excel_and_write_to_dict(read_excel_from_oss(actual_oss))
|
30
30
|
# # print(res)
|
31
31
|
# # print(read_excel_and_write_to_dict(read_excel_from_oss(oss1), type=".xlsx"))
|
32
32
|
# print(check_excel(check_type="all", actual_oss=actual_oss, expected_oss=expected_oss))
|
33
33
|
# print(check_excel_all(actual_oss=oss1, expected_oss=oss2,skiprows =1))
|
34
34
|
# print(check_excel_all(actual_oss=oss1, expected_oss=oss2, ignore_sort=0))
|
35
|
-
|
35
|
+
print(check_excel_all(actual_oss=a_person_oss2, expected_oss=e_person_oss1, check_type="including"))
|
36
36
|
# print(check_excel_all(actual_oss=e_person_oss1, expected_oss=a_person_oss2, check_type="person"))
|
37
37
|
# read_excel_csv_data(type=)
|
38
38
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|