smartpush 1.3.4__py3-none-any.whl → 1.3.5__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.
@@ -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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartpush
3
- Version: 1.3.4
3
+ Version: 1.3.5
4
4
  Summary: 用于smartpush自动化测试工具包
5
5
  Author: 卢泽彬、邵宇飞、周彦龙
6
6
 
@@ -1,5 +1,5 @@
1
1
  smartpush/__init__.py,sha256=XJrl1vhGATHSeSVqKmPXxYqxyseriUpvY5tLIXir3EE,24
2
- smartpush/get_jira_info.py,sha256=VWFQAK78sW_U2iAbRkhS9wLpj3uaFmUiM37rlq80Q5s,17741
2
+ smartpush/get_jira_info.py,sha256=RttY7EJuOmL6RF3e0MNT2X8nHB-UZegqwc6wOuG-b0s,17772
3
3
  smartpush/test.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
4
  smartpush/export/__init__.py,sha256=D9GbWcmwnetEndFDty5XbVienFK1WjqV2yYcQp3CM84,99
5
5
  smartpush/export/basic/ExcelExportChecker.py,sha256=R_1gFy69vE2V5pY20zFsnhqWgJ42Vtf35zBtOPfhUpU,17590
@@ -9,7 +9,7 @@ smartpush/export/basic/__init__.py,sha256=6tcrS-2NSlsJo-UwEsnGUmwCf7jgOsh_UEbM0F
9
9
  smartpush/utils/DataTypeUtils.py,sha256=BC7ioztO3vAfKd1EOoNvXdVuXYY8qjNskV1DP7LhW-M,1082
10
10
  smartpush/utils/StringUtils.py,sha256=n8mo9k0JQN63MReImgv-66JxmmymOGknR8pH2fkQrAo,4139
11
11
  smartpush/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- smartpush-1.3.4.dist-info/METADATA,sha256=5JMdO_0w-Gih2eLZ4LxdPqrROG1yIGTEcqHyK3SnrWs,145
13
- smartpush-1.3.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
- smartpush-1.3.4.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
15
- smartpush-1.3.4.dist-info/RECORD,,
12
+ smartpush-1.3.5.dist-info/METADATA,sha256=Yq8jzpJbaqpf8zOXlf8rOmNH63l20xNMJY0mRQvhXUY,145
13
+ smartpush-1.3.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
+ smartpush-1.3.5.dist-info/top_level.txt,sha256=5_CXqu08EfbPaKLjuSAOAqCmGU6shiatwDU_ViBGCmg,10
15
+ smartpush-1.3.5.dist-info/RECORD,,