codemie-test-harness 0.1.217__py3-none-any.whl → 0.1.218__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/providers/test_providers_endpoints.py +2 -6
- codemie_test_harness/tests/utils/base_utils.py +6 -2
- {codemie_test_harness-0.1.217.dist-info → codemie_test_harness-0.1.218.dist-info}/METADATA +2 -2
- {codemie_test_harness-0.1.217.dist-info → codemie_test_harness-0.1.218.dist-info}/RECORD +6 -6
- {codemie_test_harness-0.1.217.dist-info → codemie_test_harness-0.1.218.dist-info}/WHEEL +0 -0
- {codemie_test_harness-0.1.217.dist-info → codemie_test_harness-0.1.218.dist-info}/entry_points.txt +0 -0
|
@@ -7,7 +7,7 @@ from hamcrest import (
|
|
|
7
7
|
all_of,
|
|
8
8
|
)
|
|
9
9
|
|
|
10
|
-
from codemie_test_harness.tests.utils.base_utils import get_random_name
|
|
10
|
+
from codemie_test_harness.tests.utils.base_utils import get_random_name, assert_response
|
|
11
11
|
from codemie_test_harness.tests.utils.provider_utils import ProviderUtils
|
|
12
12
|
|
|
13
13
|
|
|
@@ -82,11 +82,7 @@ def test_post_providers_endpoint_validation_error(providers_utils):
|
|
|
82
82
|
|
|
83
83
|
response = providers_utils.send_post_request_to_providers_endpoint(request_json)
|
|
84
84
|
|
|
85
|
-
|
|
86
|
-
assert_that(
|
|
87
|
-
response.json()["error"]["details"][0]["msg"],
|
|
88
|
-
equal_to("Input should be a valid list"),
|
|
89
|
-
)
|
|
85
|
+
assert_response(response, 422, "Input should be a valid list")
|
|
90
86
|
|
|
91
87
|
|
|
92
88
|
@pytest.mark.provider
|
|
@@ -123,11 +123,15 @@ def wait_for_entity(get_entity_callable, entity_name, timeout=10, poll_interval=
|
|
|
123
123
|
def assert_response(response, status_code, message=None):
|
|
124
124
|
assert_that(response.status_code, equal_to(status_code))
|
|
125
125
|
if message:
|
|
126
|
-
error_details = json.loads(response.content)["error"]
|
|
126
|
+
error_details = json.loads(response.content)["error"].get("details", "")
|
|
127
127
|
if isinstance(error_details, list):
|
|
128
128
|
assert_that(error_details[0]["msg"], equal_to(message))
|
|
129
|
-
|
|
129
|
+
elif error_details:
|
|
130
130
|
assert_that(error_details, equal_to(message))
|
|
131
|
+
else:
|
|
132
|
+
assert_that(
|
|
133
|
+
json.loads(response.content)["error"]["message"], equal_to(message)
|
|
134
|
+
)
|
|
131
135
|
|
|
132
136
|
|
|
133
137
|
def assert_error_details(response, status_code, message):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: codemie-test-harness
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.218
|
|
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.218)
|
|
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-repeat (>=0.9.3,<0.10.0)
|
|
@@ -86,7 +86,7 @@ codemie_test_harness/tests/llm/assistants/__init__.py,sha256=47DEQpj8HBSa-_TImW-
|
|
|
86
86
|
codemie_test_harness/tests/llm/assistants/test_lite_llm.py,sha256=jYtf_J7lBSmB1LmmXWjGHkMWmpcqAJ3l_IJovgYxmZM,3683
|
|
87
87
|
codemie_test_harness/tests/llm/assistants/test_llm.py,sha256=b5HhrDkz1lwCaSZH5kdPdacmLXH_Bxnj5vO_A5ho3k8,4838
|
|
88
88
|
codemie_test_harness/tests/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
89
|
-
codemie_test_harness/tests/providers/test_providers_endpoints.py,sha256=
|
|
89
|
+
codemie_test_harness/tests/providers/test_providers_endpoints.py,sha256=0lHGRO3mh4uVK-GUPasPc05nrL4HfaYZPUPu9TZzw04,7946
|
|
90
90
|
codemie_test_harness/tests/scheduler/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
91
|
codemie_test_harness/tests/scheduler/test_scheduler_service.py,sha256=CRPoqANVErsTunJ3i9d-zqroEbBLL5R3Ks6udtlPK6g,9039
|
|
92
92
|
codemie_test_harness/tests/search/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
@@ -271,7 +271,7 @@ codemie_test_harness/tests/ui/workflows/test_workflows.py,sha256=zRBFiQYhJ_MWKGG
|
|
|
271
271
|
codemie_test_harness/tests/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
272
272
|
codemie_test_harness/tests/utils/assistant_utils.py,sha256=2s1MikCfIcM3UlkcuwaedyxI2hePuWT3h8F3SDjBCtk,8022
|
|
273
273
|
codemie_test_harness/tests/utils/aws_parameters_store.py,sha256=YAVpvwElkKZJZvzSVxtOue1Gjs-kvSBS2y5QvIlz484,3267
|
|
274
|
-
codemie_test_harness/tests/utils/base_utils.py,sha256=
|
|
274
|
+
codemie_test_harness/tests/utils/base_utils.py,sha256=Yyj9HUk8-3Wf0hpWrMXiWDjvuw7ZRt89wiYUkoDghLk,7203
|
|
275
275
|
codemie_test_harness/tests/utils/client_factory.py,sha256=xGta0ZaVYzWfwJ4cu3f89KkGc_R5Bq-9lqnhr57x_2w,972
|
|
276
276
|
codemie_test_harness/tests/utils/confluence_utils.py,sha256=auhip1ntqSDsHWAoWCxQxfuNv05BinS6TWXyg_F2dfc,4544
|
|
277
277
|
codemie_test_harness/tests/utils/constants.py,sha256=aGs0gdHB38Ozd-UyCKNpWRoQXMy3D0bjmfxiPcdZdqY,1165
|
|
@@ -404,7 +404,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
|
|
|
404
404
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=D835gaRbCnB4va5mi9TdA_u9StSpGXQ_fgzwW0S2pwo,1173
|
|
405
405
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
406
406
|
codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=Se9imIiBYuJU78m1pLu0g4ZmHygKZjr6JjIWkGXTy1Q,1364
|
|
407
|
-
codemie_test_harness-0.1.
|
|
408
|
-
codemie_test_harness-0.1.
|
|
409
|
-
codemie_test_harness-0.1.
|
|
410
|
-
codemie_test_harness-0.1.
|
|
407
|
+
codemie_test_harness-0.1.218.dist-info/METADATA,sha256=EmA3TMXO9FmRr4mF2hWy9Mcsu4AoEiA0tgjKDJUsdPM,27184
|
|
408
|
+
codemie_test_harness-0.1.218.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
409
|
+
codemie_test_harness-0.1.218.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
|
|
410
|
+
codemie_test_harness-0.1.218.dist-info/RECORD,,
|
|
File without changes
|
{codemie_test_harness-0.1.217.dist-info → codemie_test_harness-0.1.218.dist-info}/entry_points.txt
RENAMED
|
File without changes
|