WebsocketTest 1.0.12__py3-none-any.whl → 1.0.14__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.
@@ -1,7 +1,7 @@
1
1
  import subprocess
2
2
  import argparse
3
3
  import shutil
4
- import time,platform
4
+ import time
5
5
  import webbrowser
6
6
  from urllib.request import urlopen
7
7
  from urllib.error import URLError
@@ -93,33 +93,6 @@ class TestRunner:
93
93
  logger.error(f"Tests failed with exit code {e.returncode}")
94
94
  except subprocess.TimeoutExpired:
95
95
  logger.error("Test execution timed out after 1 hour")
96
- def is_allure_installed():
97
- """检查 Allure 是否已安装"""
98
- try:
99
- # 尝试运行 allure --version
100
- result = subprocess.run(
101
- ["allure", "--version"],
102
- stdout=subprocess.PIPE,
103
- stderr=subprocess.PIPE,
104
- text=True,
105
- )
106
- return result.returncode == 0
107
- except FileNotFoundError:
108
- return False
109
-
110
- def install_allure():
111
- """根据操作系统自动安装 Allure"""
112
- system = platform.system().lower()
113
-
114
- if system == "windows":
115
- # Windows 使用 scoop 安装
116
- if not shutil.which("scoop"):
117
- print("⚠️ 请先安装 Scoop (https://scoop.sh/)")
118
- exit(1)
119
- subprocess.run(["scoop", "install", "allure"], check=True)
120
- else:
121
- print(f"❌ 不支持的操作系统: {system}")
122
- exit(1)
123
96
 
124
97
  def generate_allure_report(self) -> bool:
125
98
  """生成Allure报告"""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: WebsocketTest
3
- Version: 1.0.12
3
+ Version: 1.0.14
4
4
  Summary: websocket api autotest
5
5
  Requires-Dist: allure_python_commons==2.13.5
6
6
  Requires-Dist: numpy==2.2.4
@@ -2,7 +2,7 @@ WebsocketTest/__init__.py,sha256=u71SAVmbgsyp0K21kilo7pIDgeyxsaHAi93clC0OIPQ,556
2
2
  WebsocketTest/allure_installer.py,sha256=OicATAGPC2EBMCxjoKlgFFJA8lfT-qDjakLWwDA8IAU,6194
3
3
  WebsocketTest/cli.py,sha256=HcnjgRLM404fVszrSRAf7G1y9XLJ_ZetVtRIwavS4xE,987
4
4
  WebsocketTest/conftest.py,sha256=xD7IK7airvGH9cDbES-G9PaKUdPazVuv3utB_UfRV-8,1875
5
- WebsocketTest/run_tests.py,sha256=xIe1QpWUT2LKEQ9yFoDQVZlV4epYhe2YqTktR-jAKis,7099
5
+ WebsocketTest/run_tests.py,sha256=kKdanw4dWdp3IY3Bm0-GVDpMgEu5mBbTQ7hbJ1-gusM,6227
6
6
  WebsocketTest/caseScript/Aqua.py,sha256=dTjVd4FPka5lMUvxa1DsGTJ6gx7NRo5NGNunrue3d0M,7439
7
7
  WebsocketTest/caseScript/Gateway.py,sha256=4_BlJPbn6X_eFHYz2orn3fXPQMPz5jRdUlj6tXkeX2Q,11748
8
8
  WebsocketTest/caseScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -82,8 +82,8 @@ WebsocketTest/templates/basic/testcase/__pycache__/test_gateway.cpython-310-pyte
82
82
  WebsocketTest/templates/basic/testcase/__pycache__/test_gateway1.cpython-310-pytest-8.2.2.pyc,sha256=9_jiZtyNwQfXe-Jz1acHxrwz5snYfBngqgTFtIWhRNA,5684
83
83
  WebsocketTest/templates/basic/testcase/__pycache__/test_gatewaybak.cpython-310-pytest-8.2.2.pyc,sha256=L50gNeQvSuFq2e-arnmKqYJR75ZrThiVaiIow5UUTjo,5587
84
84
  WebsocketTest/templates/basic/testcase/__pycache__/test_limin.cpython-310-pytest-8.2.2.pyc,sha256=hx7j0GNxlgTscC36dUBHeo401Mo3bRt1cq6t7e7dDSA,3434
85
- websockettest-1.0.12.dist-info/METADATA,sha256=q9VGwnji09k25ZtJ9F85Qo9qImQvv_X3-tpdqM2zZyM,334
86
- websockettest-1.0.12.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
87
- websockettest-1.0.12.dist-info/entry_points.txt,sha256=9-0RmZ0nVgfDKaDFyk5xv8arp_us-7w5Negvis1CvYc,46
88
- websockettest-1.0.12.dist-info/top_level.txt,sha256=2iF1gZSbXLjVFOe5ZKQiCLC1FzAwhcQUM88yGi-vrCU,14
89
- websockettest-1.0.12.dist-info/RECORD,,
85
+ websockettest-1.0.14.dist-info/METADATA,sha256=so3E7Dufj-G2-vWmNfWYom17Pm2daGZliYrap1iEa4s,334
86
+ websockettest-1.0.14.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
87
+ websockettest-1.0.14.dist-info/entry_points.txt,sha256=9-0RmZ0nVgfDKaDFyk5xv8arp_us-7w5Negvis1CvYc,46
88
+ websockettest-1.0.14.dist-info/top_level.txt,sha256=2iF1gZSbXLjVFOe5ZKQiCLC1FzAwhcQUM88yGi-vrCU,14
89
+ websockettest-1.0.14.dist-info/RECORD,,