smartpush 1.3.4__tar.gz → 1.3.5__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.4 → smartpush-1.3.5}/PKG-INFO +1 -1
- {smartpush-1.3.4 → smartpush-1.3.5}/setup.py +1 -1
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/get_jira_info.py +4 -3
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush.egg-info/PKG-INFO +1 -1
- {smartpush-1.3.4 → smartpush-1.3.5}/README.md +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/setup.cfg +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/__init__.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/export/__init__.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/export/basic/ExcelExportChecker.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/export/basic/GetOssUrl.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/export/basic/ReadExcel.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/export/basic/__init__.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/test.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/utils/DataTypeUtils.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/utils/StringUtils.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush/utils/__init__.py +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush.egg-info/SOURCES.txt +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush.egg-info/dependency_links.txt +0 -0
- {smartpush-1.3.4 → smartpush-1.3.5}/smartpush.egg-info/top_level.txt +0 -0
@@ -2,7 +2,6 @@ import datetime
|
|
2
2
|
import json
|
3
3
|
import requests
|
4
4
|
from jira import JIRA
|
5
|
-
from datetime import datetime
|
6
5
|
from smartpush.utils.StringUtils import StringUtils
|
7
6
|
|
8
7
|
test_user = {
|
@@ -201,6 +200,7 @@ class JiraInfo:
|
|
201
200
|
else:
|
202
201
|
print(f"{new_jql} 更新失败!")
|
203
202
|
except Exception as e:
|
203
|
+
# raise e
|
204
204
|
print(f"更新过滤器 JQL 时出错: {e}")
|
205
205
|
|
206
206
|
def product_and_ui_acceptance_notice(self, webhook, datas):
|
@@ -250,12 +250,12 @@ class JiraInfo:
|
|
250
250
|
:return:
|
251
251
|
"""
|
252
252
|
content = ""
|
253
|
-
today = datetime.today().strftime('%Y-%m-%d')
|
253
|
+
today = datetime.date.today().strftime('%Y-%m-%d')
|
254
254
|
for key, value in datas.items():
|
255
255
|
adjusted_test_completion_time = value.get("调整后测试完成时间(测试环境)")
|
256
256
|
test_end_time = value.get("测试完成时间(测试环境)") if adjusted_test_completion_time is None else adjusted_test_completion_time
|
257
257
|
test_end_text = '测试完成时间(测试环境)' if adjusted_test_completion_time is None else '调整后测试完成时间(测试环境)'
|
258
|
-
test_end_time_new = datetime.strptime(test_end_time, "%Y-%m-%d").strftime('%Y-%m-%d') if test_end_time is not None else None
|
258
|
+
test_end_time_new = datetime.datetime.strptime(test_end_time, "%Y-%m-%d").strftime('%Y-%m-%d') if test_end_time is not None else None
|
259
259
|
summary = value.get("summary")
|
260
260
|
url = value.get("url")
|
261
261
|
backend_workload = value.get("后端工作量")
|
@@ -266,6 +266,7 @@ class JiraInfo:
|
|
266
266
|
print(f"*** {today} 无涉及覆盖率登记需求,不发送通知 ***")
|
267
267
|
return
|
268
268
|
content = f"### <font color=\"warning\"> 涉及后端需求,测试完成后,请分析并登记覆盖率报告</font> \n" + content
|
269
|
+
# print(content)
|
269
270
|
self.send_wecom_robot_message(webhook, content)
|
270
271
|
|
271
272
|
def bug_not_closed_notice(self, webhook, datas):
|
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
|
File without changes
|