codemie-test-harness 0.1.161__py3-none-any.whl → 0.1.162__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.

@@ -3,6 +3,14 @@ import uuid
3
3
  from datetime import datetime
4
4
 
5
5
  import pytest
6
+ from codemie_sdk.models.assistant import (
7
+ AssistantChatRequest,
8
+ ToolKitDetails,
9
+ ToolDetails,
10
+ ChatMessage,
11
+ ChatRole,
12
+ )
13
+ from codemie_sdk.models.task import BackgroundTaskEntity
6
14
  from hamcrest import (
7
15
  assert_that,
8
16
  has_length,
@@ -13,14 +21,6 @@ from hamcrest import (
13
21
  is_not,
14
22
  )
15
23
 
16
- from codemie_sdk.models.assistant import (
17
- AssistantChatRequest,
18
- ToolKitDetails,
19
- ToolDetails,
20
- ChatMessage,
21
- ChatRole,
22
- )
23
- from codemie_sdk.models.task import BackgroundTaskEntity
24
24
  from codemie_test_harness.tests import PROJECT
25
25
 
26
26
 
@@ -135,5 +135,12 @@ def test_get_task_not_found(assistant_utils):
135
135
  """Test getting a non-existent task."""
136
136
  with pytest.raises(Exception) as exc_info:
137
137
  assistant_utils.get_tasks("non-existent-task-id")
138
- # assert "404" in str(exc_info.value) or "not found" in str(exc_info.value).lower(), Need to fix API to produce error
139
- assert_that(str(exc_info.value), contains_string("500"))
138
+
139
+ assert_that(exc_info.value.response.status_code, equal_to(404))
140
+
141
+ assert_that(
142
+ exc_info.value.response.json()["error"]["details"],
143
+ equal_to(
144
+ "The task with ID [non-existent-task-id] could not be found in the system."
145
+ ),
146
+ )
@@ -1,6 +1,7 @@
1
1
  from time import sleep
2
2
 
3
3
  import pytest
4
+ from codemie_sdk.models.workflow import ExecutionStatus, WorkflowMode
4
5
  from hamcrest import (
5
6
  assert_that,
6
7
  equal_to,
@@ -12,10 +13,8 @@ from hamcrest import (
12
13
  is_not,
13
14
  )
14
15
 
15
- from codemie_sdk.models.workflow import ExecutionStatus, WorkflowMode
16
16
  from codemie_test_harness.tests import PROJECT
17
17
  from codemie_test_harness.tests.utils.base_utils import get_random_name
18
-
19
18
  from codemie_test_harness.tests.utils.yaml_utils import (
20
19
  AssistantModel,
21
20
  StateModel,
@@ -133,14 +132,16 @@ def test_run_workflow(workflow_utils, search_utils, test_workflow: str):
133
132
  )
134
133
 
135
134
 
136
- @pytest.mark.skip(reason="Bug: https://jiraeu.epam.com/browse/EPMCDME-7883")
137
135
  def test_list_executions_nonexistent_workflow(search_utils):
138
136
  with pytest.raises(Exception) as exc_info:
139
137
  search_utils.list_workflow_executions("non-existent-id")
140
138
 
139
+ assert_that(exc_info.value.response.status_code, equal_to(404))
141
140
  assert_that(
142
- str(exc_info.value).lower(),
143
- contains_string("No workflows found with id non-existent-id"),
141
+ str(exc_info.value.response.json()["error"]["details"]),
142
+ equal_to(
143
+ "The workflow with ID [non-existent-id] could not be found in the system."
144
+ ),
144
145
  )
145
146
 
146
147
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.161
3
+ Version: 0.1.162
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.161)
16
+ Requires-Dist: codemie-sdk-python (==0.1.162)
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)
@@ -92,9 +92,9 @@ codemie_test_harness/tests/service/test_assistant_service.py,sha256=NSQUNMv_Dk7x
92
92
  codemie_test_harness/tests/service/test_datasource_service.py,sha256=_mER2wtvZr4SqCd6rJnRBG6q6-kDtS63xY5ZsDCdNt4,15444
93
93
  codemie_test_harness/tests/service/test_integration_service.py,sha256=ODQJhBRELTIy75aFpZt_-axJHbB1wwrX6oz7JGNjtus,7529
94
94
  codemie_test_harness/tests/service/test_llm_service.py,sha256=aBJz6Z82JzeWeTuhHTVaRm1Cm7lJMKGRMQ1f6rIalTQ,543
95
- codemie_test_harness/tests/service/test_task_service.py,sha256=kxbZBbxyTg4YsRhteMBEoaqiLwbcF9h03fQ6e9m9xTY,4562
95
+ codemie_test_harness/tests/service/test_task_service.py,sha256=q2RaZbNooWraONLFCbebYqdgecs4aXUCbA9HOTzUIGw,4677
96
96
  codemie_test_harness/tests/service/test_user_service.py,sha256=NqSsxOLTGg7p7juHLFP6StEs2Qx_wfct9R7F83pe2JU,1135
97
- codemie_test_harness/tests/service/test_workflow_execution_service.py,sha256=dUNon4lHbzPIVM5Y9jwZw7PNTK1c9g-X4m98XQtUYDA,5356
97
+ codemie_test_harness/tests/service/test_workflow_execution_service.py,sha256=pHV7WXvQKzpw0wMn6aHVZ01g7yZupmU5NXLVE9rIKjo,5419
98
98
  codemie_test_harness/tests/service/test_workflow_service.py,sha256=QyxtorhaCI1oE2D1OLx7X7jAlBv0kwwFpQztvV1nUus,8152
99
99
  codemie_test_harness/tests/test_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
100
  codemie_test_harness/tests/test_data/ado_test_plan_tools_test_data.py,sha256=Al5u4HNfrcoj-b072uEGsqUqjKqwXLGJXKQ0QeJT3PI,5778
@@ -348,7 +348,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
348
348
  codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=vq6tucNBxiNIQSmIj_pYiiPm0lipU9X3kzeCd6xEbRM,966
349
349
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
350
350
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=uD2qs361j6Egp4UumfoQ4gC24-NioXfiW0IF53N9hVA,1175
351
- codemie_test_harness-0.1.161.dist-info/METADATA,sha256=8CsQCb2vq2XdzkZC8ZpOW8-PMgPMrW6mdpYPWszjG_Q,8998
352
- codemie_test_harness-0.1.161.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
353
- codemie_test_harness-0.1.161.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
354
- codemie_test_harness-0.1.161.dist-info/RECORD,,
351
+ codemie_test_harness-0.1.162.dist-info/METADATA,sha256=P1Q4a4YnD6COFOY-PfS_-GBgT9mPzD-w_9kIBheM_gQ,8998
352
+ codemie_test_harness-0.1.162.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
353
+ codemie_test_harness-0.1.162.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
354
+ codemie_test_harness-0.1.162.dist-info/RECORD,,