codemie-test-harness 0.1.142__py3-none-any.whl → 0.1.144__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.
Potentially problematic release.
This version of codemie-test-harness might be problematic. Click here for more details.
- codemie_test_harness/tests/conftest.py +14 -24
- codemie_test_harness/tests/test_data/notification_tools_test_data.py +1 -1
- {codemie_test_harness-0.1.142.dist-info → codemie_test_harness-0.1.144.dist-info}/METADATA +3 -3
- {codemie_test_harness-0.1.142.dist-info → codemie_test_harness-0.1.144.dist-info}/RECORD +6 -6
- {codemie_test_harness-0.1.142.dist-info → codemie_test_harness-0.1.144.dist-info}/WHEEL +0 -0
- {codemie_test_harness-0.1.142.dist-info → codemie_test_harness-0.1.144.dist-info}/entry_points.txt +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import subprocess
|
|
3
3
|
import uuid
|
|
4
|
-
import atexit
|
|
5
4
|
from time import sleep
|
|
6
5
|
from typing import List, Optional
|
|
7
6
|
from pathlib import Path
|
|
@@ -56,25 +55,6 @@ from codemie_test_harness.tests.utils.yaml_utils import (
|
|
|
56
55
|
logger = setup_logger(__name__)
|
|
57
56
|
|
|
58
57
|
|
|
59
|
-
def force_finish_rp_launch():
|
|
60
|
-
from reportportal_client._internal.local import current
|
|
61
|
-
|
|
62
|
-
client = current()
|
|
63
|
-
if client and hasattr(client, "finish_launch") and hasattr(client, "launch_uuid"):
|
|
64
|
-
if (
|
|
65
|
-
client.launch_uuid
|
|
66
|
-
and hasattr(client, "use_own_launch")
|
|
67
|
-
and client.use_own_launch
|
|
68
|
-
):
|
|
69
|
-
from datetime import datetime, timezone
|
|
70
|
-
|
|
71
|
-
end_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
|
72
|
-
client.finish_launch(end_time)
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
atexit.register(force_finish_rp_launch)
|
|
76
|
-
|
|
77
|
-
|
|
78
58
|
def pytest_configure(config):
|
|
79
59
|
"""Pytest hook that runs before test collection starts.
|
|
80
60
|
|
|
@@ -112,10 +92,20 @@ def pytest_configure(config):
|
|
|
112
92
|
load_dotenv(env_file_path)
|
|
113
93
|
|
|
114
94
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
95
|
+
def pytest_unconfigure(config):
|
|
96
|
+
"""Called before test process is exited - cleanup ReportPortal and other resources."""
|
|
97
|
+
from reportportal_client._internal.local import current
|
|
98
|
+
from datetime import datetime, timezone
|
|
99
|
+
|
|
100
|
+
client = current()
|
|
101
|
+
if client and hasattr(client, "finish_launch") and hasattr(client, "launch_uuid"):
|
|
102
|
+
if (
|
|
103
|
+
client.launch_uuid
|
|
104
|
+
and hasattr(client, "use_own_launch")
|
|
105
|
+
and client.use_own_launch
|
|
106
|
+
):
|
|
107
|
+
end_time = datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%S.%fZ")
|
|
108
|
+
client.finish_launch(end_time)
|
|
119
109
|
|
|
120
110
|
|
|
121
111
|
@pytest.fixture(scope="session")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codemie-test-harness
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.144
|
|
4
4
|
Summary: Autotest for CodeMie backend and UI
|
|
5
5
|
Author: Anton Yeromin
|
|
6
6
|
Author-email: anton_yeromin@epam.com
|
|
@@ -13,7 +13,7 @@ Requires-Dist: aws-assume-role-lib (>=2.10.0,<3.0.0)
|
|
|
13
13
|
Requires-Dist: boto3 (>=1.39.8,<2.0.0)
|
|
14
14
|
Requires-Dist: click (>=8.1.7,<9.0.0)
|
|
15
15
|
Requires-Dist: codemie-plugins (>=0.1.123,<0.2.0)
|
|
16
|
-
Requires-Dist: codemie-sdk-python (==0.1.
|
|
16
|
+
Requires-Dist: codemie-sdk-python (==0.1.144)
|
|
17
17
|
Requires-Dist: pytest (>=8.4.1,<9.0.0)
|
|
18
18
|
Requires-Dist: pytest-playwright (>=0.7.0,<0.8.0)
|
|
19
19
|
Requires-Dist: pytest-reportportal (>=5.5.2,<6.0.0)
|
|
@@ -246,7 +246,7 @@ pytest -m not_for_parallel_run --reruns 2
|
|
|
246
246
|
|
|
247
247
|
# Regression tests
|
|
248
248
|
pytest -n 10 -m "regression and not not_for_parallel_run" --reruns 2
|
|
249
|
-
pytest -m not_for_parallel_run --reruns
|
|
249
|
+
pytest -m not_for_parallel_run --reruns 3
|
|
250
250
|
```
|
|
251
251
|
|
|
252
252
|
Note: "--reruns 2" uses pytest-rerunfailures to improve resiliency in flaky environments.
|
|
@@ -55,7 +55,7 @@ codemie_test_harness/tests/assistant/tools/servicenow/__init__.py,sha256=47DEQpj
|
|
|
55
55
|
codemie_test_harness/tests/assistant/tools/servicenow/test_servicenow_tools.py,sha256=JV_n6COaCsd0_rxQBJvvLZfPdo8BsCbG8Ti-UpzFvfQ,644
|
|
56
56
|
codemie_test_harness/tests/assistant/tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
57
|
codemie_test_harness/tests/assistant/tools/vcs/test_assistant_with_vcs_tools.py,sha256=5-QybLWmYSqHG4Sqr-IN-vNcStV4skSwCJQN44Nfats,922
|
|
58
|
-
codemie_test_harness/tests/conftest.py,sha256=
|
|
58
|
+
codemie_test_harness/tests/conftest.py,sha256=qzKtJdd7j0I6jBiIOCnz1uF0-Qm0wLWkSwXK_Rg3adI,27869
|
|
59
59
|
codemie_test_harness/tests/e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
60
|
codemie_test_harness/tests/e2e/test_e2e.py,sha256=RUvSu_uNInU1OFfkNft3-Cmd0KZV7JdHqCxSK2ZWXHw,6257
|
|
61
61
|
codemie_test_harness/tests/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -135,7 +135,7 @@ codemie_test_harness/tests/test_data/index_test_data.py,sha256=jSJ7YSNisFADONRKS
|
|
|
135
135
|
codemie_test_harness/tests/test_data/integrations_test_data.py,sha256=dPadoQCurmOtqhq5hcPe1hhuSZ6NYa4IZwdWMiMx2Tw,6599
|
|
136
136
|
codemie_test_harness/tests/test_data/llm_test_data.py,sha256=SJIBGtC8Ha7T0S7G9598PvHzzQIR6gg4HnNCtgYmLYw,2200
|
|
137
137
|
codemie_test_harness/tests/test_data/mcp_server_test_data.py,sha256=dNtuJm47-F0OV5fIHUpb1Ko6VQOECWx2XDBuLyxtDzo,7671
|
|
138
|
-
codemie_test_harness/tests/test_data/notification_tools_test_data.py,sha256=
|
|
138
|
+
codemie_test_harness/tests/test_data/notification_tools_test_data.py,sha256=Rqo-5u7PULDJddidjqcJfnsus6-JbDABk9147JX0pqs,855
|
|
139
139
|
codemie_test_harness/tests/test_data/open_api_tools_test_data.py,sha256=XhVzelRXgLXHF2iIvhI70SP6qHQjT7QW70S06dF6XJI,2480
|
|
140
140
|
codemie_test_harness/tests/test_data/openapi.json,sha256=X4uqtfjpTUuMifefQRf8mHI1k8pspp8-L0rpJlhLOI4,10459
|
|
141
141
|
codemie_test_harness/tests/test_data/output_schema_test_data.py,sha256=4l7AvXbMl9hIvoFxu1LPPSGz9hb5Uz2_is4zTm77ARY,261
|
|
@@ -323,7 +323,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
|
|
|
323
323
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=Cxe5Yuy9JE_IEsnQOThpVIZQqpfLuHfDkF6JwLngDc8,890
|
|
324
324
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
325
325
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=tm0NvUf_UtzLPTYJWykYpsNoxoVs-Eh80guDmRwImwg,1106
|
|
326
|
-
codemie_test_harness-0.1.
|
|
327
|
-
codemie_test_harness-0.1.
|
|
328
|
-
codemie_test_harness-0.1.
|
|
329
|
-
codemie_test_harness-0.1.
|
|
326
|
+
codemie_test_harness-0.1.144.dist-info/METADATA,sha256=16Cb9TqeLssG39l6m_K9Ut2FFz9JTT8MmCi9o3C49ZQ,8998
|
|
327
|
+
codemie_test_harness-0.1.144.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
328
|
+
codemie_test_harness-0.1.144.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
|
|
329
|
+
codemie_test_harness-0.1.144.dist-info/RECORD,,
|
|
File without changes
|
{codemie_test_harness-0.1.142.dist-info → codemie_test_harness-0.1.144.dist-info}/entry_points.txt
RENAMED
|
File without changes
|