smartpush 1.0.2.9__py3-none-any.whl → 1.0.3__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 -2
- smartpush/felix_test.py +3 -0
- {smartpush-1.0.2.9.dist-info → smartpush-1.0.3.dist-info}/METADATA +1 -1
- smartpush-1.0.3.dist-info/RECORD +10 -0
- smartpush-1.0.2.9.dist-info/RECORD +0 -10
- {smartpush-1.0.2.9.dist-info → smartpush-1.0.3.dist-info}/WHEEL +0 -0
- {smartpush-1.0.2.9.dist-info → smartpush-1.0.3.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,9 @@ from io import BytesIO
|
|
3
3
|
import pandas as pd
|
4
4
|
import numpy as np
|
5
5
|
from requests import request
|
6
|
-
|
6
|
+
"""
|
7
|
+
用于excel校验
|
8
|
+
"""
|
7
9
|
|
8
10
|
def read_excel_from_oss(method="get", url=""):
|
9
11
|
"""读取oss的excel内容并写入到本地csv"""
|
@@ -72,7 +74,7 @@ def check_excel(actual, expected):
|
|
72
74
|
"""
|
73
75
|
try:
|
74
76
|
if actual == expected:
|
75
|
-
return True
|
77
|
+
return True, ["完全匹配"]
|
76
78
|
else:
|
77
79
|
errors = []
|
78
80
|
# 断言1:校验行数
|
@@ -99,6 +101,7 @@ def check_excel(actual, expected):
|
|
99
101
|
return False, errors
|
100
102
|
except Exception as e:
|
101
103
|
print(f"对比excel:{e}")
|
104
|
+
return False, [e]
|
102
105
|
|
103
106
|
|
104
107
|
def del_temp_file(file_name=""):
|
smartpush/felix_test.py
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
import requests
|
2
|
+
|
1
3
|
from smartpush.export.basic import ExcelExportChecker
|
2
4
|
|
3
5
|
if __name__ == '__main__':
|
@@ -6,3 +8,4 @@ if __name__ == '__main__':
|
|
6
8
|
excelOss = ExcelExportChecker.read_excel_from_oss(url=ossurl)
|
7
9
|
excelList = ExcelExportChecker.read_excel_and_write_to_list(excel_data=excelOss)
|
8
10
|
print(excelList)
|
11
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
smartpush/__init__.py,sha256=XJrl1vhGATHSeSVqKmPXxYqxyseriUpvY5tLIXir3EE,24
|
2
|
+
smartpush/felix_test.py,sha256=I7DkMnqRUa48ALyawoJtPh74zRR86OO3oRnkBi9qJRQ,476
|
3
|
+
smartpush/get_jira_info.py,sha256=dmCwkKa94xwyE2hegE1KBI3cV_LbrJ67P9osORUGPt4,2633
|
4
|
+
smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
|
5
|
+
smartpush/export/basic/ExcelExportChecker.py,sha256=3brXFECXhTMuVnB-CLnaLBK5CZPW2TuooL0n_B6iigg,4374
|
6
|
+
smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0FD-gYE,70
|
7
|
+
smartpush-1.0.3.dist-info/METADATA,sha256=TgyZqa2PcOcQ3t1sG7qiGoGW10kwhoSji2z9mQ76pZM,145
|
8
|
+
smartpush-1.0.3.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
9
|
+
smartpush-1.0.3.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
10
|
+
smartpush-1.0.3.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
smartpush/__init__.py,sha256=XJrl1vhGATHSeSVqKmPXxYqxyseriUpvY5tLIXir3EE,24
|
2
|
-
smartpush/felix_test.py,sha256=AaLMo_SWsm_NQLj-SbcPcoSpcf-wluCLWdr3hm0_BCI,458
|
3
|
-
smartpush/get_jira_info.py,sha256=dmCwkKa94xwyE2hegE1KBI3cV_LbrJ67P9osORUGPt4,2633
|
4
|
-
smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
|
5
|
-
smartpush/export/basic/ExcelExportChecker.py,sha256=t1_28uY0LB1rUgOfIlyXUtH5y8id85zkLvGCmAIPQCE,4305
|
6
|
-
smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0FD-gYE,70
|
7
|
-
smartpush-1.0.2.9.dist-info/METADATA,sha256=AqcfMMuqlv0vOAmIXAI1GfC0DFrzaxkLeruueb9c62s,147
|
8
|
-
smartpush-1.0.2.9.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
|
9
|
-
smartpush-1.0.2.9.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
|
10
|
-
smartpush-1.0.2.9.dist-info/RECORD,,
|
File without changes
|
File without changes
|