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

@@ -8,7 +8,7 @@ from .constants import CONSOLE
8
8
  def build_pytest_cmd(
9
9
  workers: int, marks: str, reruns: int, extra: Iterable[str] | None = None
10
10
  ) -> List[str]:
11
- cmd = [sys.executable, "-m", "pytest"]
11
+ cmd = [sys.executable, "-m", "pytest", "../../tests"]
12
12
  if workers:
13
13
  cmd += ["-n", str(workers)]
14
14
  if marks:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.125
3
+ Version: 0.1.127
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.125)
16
+ Requires-Dist: codemie-sdk-python (==0.1.127)
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)
@@ -4,21 +4,21 @@ codemie_test_harness/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
4
4
  codemie_test_harness/cli/commands/config_cmd.py,sha256=iCV7qJZrESIKZQdg_AmhuPz1EZLN2s-UpbdzzIjrVEU,1353
5
5
  codemie_test_harness/cli/commands/run_cmd.py,sha256=T5js1hwHKi1QuF-kLwP3c-GMtiO9QO15H3JJc7nzpp4,1052
6
6
  codemie_test_harness/cli/constants.py,sha256=956_apPJ4MjhnKo1ZtDooXCd2N89J3vyAB-J9-SOr7U,1637
7
- codemie_test_harness/cli/runner.py,sha256=065DF1ScVtIHsG1eBJpa0lmQJ3k1CfTJnbuDD2oYp90,786
7
+ codemie_test_harness/cli/runner.py,sha256=AqED6FlYvvMOJdxTiTykgcXnmVzWKf0PXc_RTf-Kcv4,801
8
8
  codemie_test_harness/cli/utils.py,sha256=NlRa8VFbXTbD74jfUaSqbccGNu2R1dUIg8d5SyDTmIM,1136
9
9
  tests/__init__.py,sha256=nvgBwCx27qm2YIE4hzAwqoD0sMmUVF9Kec-ndl7CFZ8,994
10
10
  tests/assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  tests/assistant/datasource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  tests/assistant/datasource/test_code_datasource.py,sha256=4jMJjUClgjRKW2Prh0bkphQbZ78WCIP0fLKF2YY6pZM,2557
13
13
  tests/assistant/datasource/test_confluence_datasource.py,sha256=UCgeB8HfYxnSIHTAyfuMeDjvNM2a8PjjPJLRxnw923c,2206
14
- tests/assistant/datasource/test_file_indexing.py,sha256=yOLIWzeYjMKpOcRIjyvLOU_5gl282p4D1zUUM15rdDg,5430
14
+ tests/assistant/datasource/test_file_indexing.py,sha256=A5SFUysgNgi-njgIXMCaNp8HIqqni96xje2dpeAgmrw,5410
15
15
  tests/assistant/datasource/test_google_datasource.py,sha256=U3lE8tnra_nBayyce3CYCvsF_KZUirP_IBhGgkW14Dw,2182
16
16
  tests/assistant/datasource/test_jira_datasource.py,sha256=vL6vh-eLhGomIDGwKeN7-fQlDS2Ilu9HR1g-yAkogww,2067
17
17
  tests/assistant/default_integrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
18
18
  tests/assistant/default_integrations/test_default_integrations_for_tool.py,sha256=0ddIxpilM6KvpaZS6IzQ35iiy2ymI51LKlKilNcMF-k,7093
19
19
  tests/assistant/default_integrations/test_default_integrations_for_tool_kit.py,sha256=QnHa6hwBdHCb6UNMg8PIvVU3bx3cUWL-E-DDhRSrUyA,7368
20
20
  tests/assistant/default_integrations/test_default_integrations_for_tool_with_datasource.py,sha256=x2sESRqwUBYOhTYPs9CNITWZhTO6Ya3YROjR5oLK8U0,9683
21
- tests/assistant/test_assistants.py,sha256=d8Mzv6mu5MM4OnAbqAM1GlWpfTS9kh3tXK_uTtFJlnQ,11984
21
+ tests/assistant/test_assistants.py,sha256=cswQmyiBeHtYIglYx3MH-_QNg34kW5xDPjsqRyiNlfM,11918
22
22
  tests/assistant/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  tests/assistant/tools/ado/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  tests/assistant/tools/ado/test_assistant_for_ado_test_plan_tools.py,sha256=lrcx5LJJ8Z6y6PCO8E4WAq-hwZMGwPR0NhOsofFyJ6w,4799
@@ -101,12 +101,12 @@ tests/test_data/direct_tools/direct_tools_test_data.py,sha256=hEy9frn13kqia4Qy7V
101
101
  tests/test_data/direct_tools/file_management_tools_test_data.py,sha256=uJWn80216agm-_YTIbF5Y72mU7gn6lChM5vFFjH99SI,1359
102
102
  tests/test_data/direct_tools/notification_tools_test_data.py,sha256=DDqnFiCEvhtH9Sc9KQbdXRgTQmSnn7JFslPyuxGKRhc,1491
103
103
  tests/test_data/direct_tools/open_api_tools_test_data.py,sha256=-maO_OZahugoKusuUGQ4kQR373BSupOqrbvnCuPgqRY,476
104
- tests/test_data/direct_tools/project_management_tools_test_data.py,sha256=YyIE7db8SLadP8pIfy4CWMr-nIcGXT9ih_7CPtsziPY,20888
104
+ tests/test_data/direct_tools/project_management_tools_test_data.py,sha256=HDmVZPPbkNtylYaGTpMP5OKcNvbBLoOVIlxOmiz6Wjs,20827
105
105
  tests/test_data/direct_tools/research_tools_test_data.py,sha256=tpukFcY-2dD6ZEHLYFnv_axzj-fEcIvyF2yo-Hu8udY,15220
106
106
  tests/test_data/direct_tools/servicenow_tools_test_data.py,sha256=d-F3d6AUniYQ5qqnYtDVu0ME6_Xub9XjRLf7Ssx-J4o,5464
107
107
  tests/test_data/direct_tools/vcs_tools_test_data.py,sha256=ioMJ-eQfa2S1NPmXHyb9UmpBxiYFAvdkPGst8iVnvn8,7164
108
108
  tests/test_data/file_management_tools_test_data.py,sha256=TP9D2CtrZ_N6BFLcqErW6ggHlN9hUkSKGGGwo4Gt55c,3727
109
- tests/test_data/file_test_data.py,sha256=jAvQlVGTnxnbOEQx7yca57n6vun2dWa_iafO1ZMwrik,11910
109
+ tests/test_data/file_test_data.py,sha256=lhMJBbejENthkDNcg5vvUB-nWFU4zidnPaplQJBU1CM,11712
110
110
  tests/test_data/files/large-files/large_file.txt,sha256=uLjvYxR0RpLPrXstAfhvfWhMwiWrhsaCl_WV-Lh6GKA,110100480
111
111
  tests/test_data/files/test.csv,sha256=M1FdTVc3LM74A2g6dQxRfOmJEvyJXRKBzWVzD4lFSno,52
112
112
  tests/test_data/files/test.docx,sha256=COrp_ujSoOVcG88in3t3w2oGckbd7xovk-ArsOrAq1w,26643
@@ -115,7 +115,6 @@ tests/test_data/files/test.ini,sha256=5AmpNeWzjWuUPkjX0d-QB0nswyyJ6ilZc7K29V9ltJ
115
115
  tests/test_data/files/test.jpeg,sha256=RzGESRrqXF35R8fvJovtijEiUu86KRslAHAK9h4fX9g,124982
116
116
  tests/test_data/files/test.jpg,sha256=RzGESRrqXF35R8fvJovtijEiUu86KRslAHAK9h4fX9g,124982
117
117
  tests/test_data/files/test.json,sha256=PU2SWV-0sh31J0b7chGJazD1kWNITRKxc0PXrKUWmBw,92
118
- tests/test_data/files/test.ods,sha256=JwQzmBneve47DJxUV7UbpbLV3Z1gqPMa-2oLwYUizgk,9240
119
118
  tests/test_data/files/test.pdf,sha256=wlaQPdOVHyTl7SnHh66I1yNiXV_Lo4xkLBtb3il2cRk,80574
120
119
  tests/test_data/files/test.png,sha256=RzGESRrqXF35R8fvJovtijEiUu86KRslAHAK9h4fX9g,124982
121
120
  tests/test_data/files/test.pptx,sha256=QPIWD8dB3K5rNkItWa_WaRhpadZt8hQdBR-2aTXc1xo,31896
@@ -208,7 +207,7 @@ tests/utils/aws_parameters_store.py,sha256=fbyRpX_NkSPijXdAzAcwRSS_ukJa1Pxqcu_TJ
208
207
  tests/utils/base_utils.py,sha256=9kfGJs-Bp8m2f_lAQACH2rtNxnUYTOcDPWmU4mJX1Gc,5970
209
208
  tests/utils/client_factory.py,sha256=Yyg2iXe7g7fIfIUbOH8z_8qgVo_lB-nYLOfCV5ONXFw,641
210
209
  tests/utils/constants.py,sha256=pQB9dC2MgT8X1wPA0rWmGJn4HSWCpUZvvLuI42kw2nY,1090
211
- tests/utils/datasource_utils.py,sha256=As9MXCo60fp0l2HuMeNh9NHOopWPKmAxh5ifiKXjIJM,12475
210
+ tests/utils/datasource_utils.py,sha256=Dwos1XAZefm1wjB_EkJ2S9Ax4a74MIDKaOxctGAdaH8,12443
212
211
  tests/utils/file_utils.py,sha256=hY-kwnyzvtd1BQif8r5NhvRTGfpKLmQKyRsq1Tuflhg,585
213
212
  tests/utils/gitbud_utils.py,sha256=UJ3RbhPSjHQSdos6S6zTR9iZULrBDJXoXq9cbjFH7bo,7829
214
213
  tests/utils/http_utils.py,sha256=qsKNvBVN6nrRlz0lZRYhhxdrI6Ecs17KUKo8rsrpJ_o,1598
@@ -268,7 +267,7 @@ tests/workflow/direct_tools_calling/test_workflow_with_ado_test_plan_tools.py,sh
268
267
  tests/workflow/direct_tools_calling/test_workflow_with_ado_wiki_tools.py,sha256=hQUDj71Uzt0zkNjPP_b_opXfFl-SnUb9rpHxUO65jAk,2693
269
268
  tests/workflow/direct_tools_calling/test_workflow_with_ado_work_item_tools.py,sha256=sXGmqswUXgjZbfRWAbz65ZvcGe1AJVquKFahGn8LfEM,2757
270
269
  tests/workflow/direct_tools_calling/test_workflow_with_cloud_tools.py,sha256=0gjWaURg61PDhW7E16K7qam50OESdIBZw7puPcxJwKk,3467
271
- tests/workflow/direct_tools_calling/test_workflow_with_codebase_tools.py,sha256=wygzuEVyWswZrWp8hcsD4gjLsG97EvvQ1QJPfWGS61Q,3737
270
+ tests/workflow/direct_tools_calling/test_workflow_with_codebase_tools.py,sha256=Lbq9Oe7N1HXYTypHHSZLjSinbMHKhvw574eq7C2ptmc,3737
272
271
  tests/workflow/direct_tools_calling/test_workflow_with_data_management_tools.py,sha256=dE8y6mTpmNiBL6t_OFBzKZrYwtQiJaAVBFG9TfYaxV8,3674
273
272
  tests/workflow/direct_tools_calling/test_workflow_with_file_management_tools.py,sha256=pNAqimzrCRdxo3t_XtaPRR6a6Ddi3yvnzYg9E9VlhAk,2631
274
273
  tests/workflow/direct_tools_calling/test_workflow_with_notification_tools.py,sha256=wl8BMUzOILiQ4u7MnMmKjUXWBuZ4piQrIxZoi-TswHs,2847
@@ -315,7 +314,7 @@ tests/workflow/virtual_assistant_tools/servicenow/__init__.py,sha256=47DEQpj8HBS
315
314
  tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=ecTfkwxPMbyyEKS-dArAQkluZURO1nThwDdD66mgC3E,814
316
315
  tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
316
  tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=G0iI3X7SGEEy1Z2Hc7j917saY3lpzgfil_GtALCFilE,1043
318
- codemie_test_harness-0.1.125.dist-info/METADATA,sha256=VBB3EoZy1rdVrrAvR_d83F4dMHOM3vGWar9-KTEITOk,8998
319
- codemie_test_harness-0.1.125.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
320
- codemie_test_harness-0.1.125.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
321
- codemie_test_harness-0.1.125.dist-info/RECORD,,
317
+ codemie_test_harness-0.1.127.dist-info/METADATA,sha256=99AQgcfkydHxy2EAcC4EEPoxA2tlfS0TF3FI7Q8JxOM,8998
318
+ codemie_test_harness-0.1.127.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
319
+ codemie_test_harness-0.1.127.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
320
+ codemie_test_harness-0.1.127.dist-info/RECORD,,
@@ -32,7 +32,6 @@ def pytest_generate_tests(metafunc):
32
32
  # Excluding not supported extensions for now
33
33
  files_to_exclude = [
34
34
  "test.jpg",
35
- "test.ods",
36
35
  "test.vtt",
37
36
  "test.ini",
38
37
  "test.gif",
@@ -220,7 +220,6 @@ def test_create_assistant_and_prompt_with_file(
220
220
  prompt = (
221
221
  f"What is the content/text of the {file_name}. Show information from ALL pages. "
222
222
  "For PDF use 'Text' for query. If provided file is CSV then run python_repl_ast tool and show first 5 rows."
223
- "For images use Image Tool to explain what you see on it"
224
223
  )
225
224
 
226
225
  assistant = assistant(system_prompt=system_prompt_for_chatting_with_files)
@@ -6,11 +6,7 @@ project_management_tools_data = [
6
6
  Toolkit.PROJECT_MANAGEMENT,
7
7
  ProjectManagementTool.JIRA,
8
8
  ProjectManagementIntegrationType.JIRA,
9
- {
10
- "method": "GET",
11
- "relative_url": "/rest/api/2/issue/EPMCDME-222",
12
- "params": {},
13
- },
9
+ {"method": "GET", "relative_url": "/rest/api/2/issue/EPMCDME-222"},
14
10
  """
15
11
  HTTP: GET /rest/api/2/issue/EPMCDME-222 -> 200 OK {"expand":"renderedFields,names,schema,operations,editmeta,
16
12
  changelog,versionedRepresentations","id":"6959493","self":"https://jiraeu.epam.com/rest/api/2/issue/6959493",
@@ -35,15 +35,6 @@ file_test_data = [
35
35
  None None Travellers
36
36
  """,
37
37
  ),
38
- (
39
- "test.ods",
40
- """
41
- Column 1 Column 2 Column 3
42
- Cars Test 222
43
- Data Cats 111
44
- None None Travellers
45
- """,
46
- ),
47
38
  (
48
39
  "test.vtt",
49
40
  """
@@ -241,7 +232,6 @@ files_with_different_types_test_data = [
241
232
  "test.png",
242
233
  "test.docx",
243
234
  "test.xlsx",
244
- "test.ods",
245
235
  "test.ini",
246
236
  ]
247
237
 
@@ -163,9 +163,7 @@ class DataSourceUtils(BaseUtils):
163
163
  self.client.datasources.create_file_datasource(create_datasource_request, files)
164
164
 
165
165
  datasource = wait_for_entity(
166
- lambda: self.client.datasources.list(
167
- per_page=200, filters={"search": name}
168
- ),
166
+ lambda: self.client.datasources.list(per_page=200, filters={"name": name}),
169
167
  entity_name=name,
170
168
  )
171
169
 
@@ -48,7 +48,7 @@ def test_workflow_with_sonar_tools_direct(
48
48
  response = workflow_utils.execute_workflow(
49
49
  test_workflow.id, assistant_and_state_name, user_input=json.dumps(prompt)
50
50
  )
51
- similarity_check.check_similarity(response, expected_response, 95)
51
+ similarity_check.check_similarity(response, expected_response, 80)
52
52
 
53
53
 
54
54
  @pytest.mark.regression
@@ -87,7 +87,7 @@ def test_workflow_with_sonar_tools_with_hardcoded_args(
87
87
  response = workflow_utils.execute_workflow(
88
88
  test_workflow.id, assistant_and_state_name
89
89
  )
90
- similarity_check.check_similarity(response, expected_response, 95)
90
+ similarity_check.check_similarity(response, expected_response, 80)
91
91
 
92
92
 
93
93
  @pytest.mark.regression
@@ -129,4 +129,4 @@ def test_workflow_with_sonar_tools_with_overriding_args(
129
129
  response = workflow_utils.execute_workflow(
130
130
  test_workflow.id, assistant_and_state_name, user_input=json.dumps(prompt)
131
131
  )
132
- similarity_check.check_similarity(response, expected_response, 95)
132
+ similarity_check.check_similarity(response, expected_response, 80)
Binary file