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

@@ -4,5 +4,6 @@ from enum import Enum
4
4
  class DataBaseDialect(str, Enum):
5
5
  """Enum for DB Dialect names."""
6
6
 
7
+ MS_SQL = "mssql"
7
8
  MY_SQL = "mysql"
8
9
  POSTGRES = "postgres"
@@ -1,3 +1,7 @@
1
+ import os
2
+
3
+ import pytest
4
+
1
5
  from codemie_test_harness.tests.enums.integrations import DataBaseDialect
2
6
 
3
7
  ELASTIC_TOOL_TASK = """
@@ -81,7 +85,15 @@ RESPONSE_FOR_SQL = """
81
85
  | Sarah | Connor | sarah.connor@email.com | Security |
82
86
  """
83
87
 
88
+ # Define test data for SQL tools based on environment
84
89
  sql_tools_test_data = [
85
90
  DataBaseDialect.MY_SQL,
86
91
  DataBaseDialect.POSTGRES,
92
+ pytest.param(
93
+ DataBaseDialect.MS_SQL,
94
+ marks=pytest.mark.skipif(
95
+ os.getenv("ENV") not in ("aws", "azure", "gcp"),
96
+ reason="MS SQL is only available in staging environments",
97
+ ),
98
+ ),
87
99
  ]
@@ -1,3 +1,7 @@
1
+ import os
2
+
3
+ import pytest
4
+
1
5
  from codemie_test_harness.tests.enums.tools import DataManagementTool, Toolkit
2
6
  from codemie_test_harness.tests.enums.integrations import DataBaseDialect
3
7
 
@@ -18,4 +22,27 @@ sql_tools_test_data = [
18
22
  },
19
23
  [{"table_name": "users"}, {"table_name": "products"}],
20
24
  ),
25
+ pytest.param(
26
+ Toolkit.DATA_MANAGEMENT,
27
+ DataManagementTool.SQL,
28
+ DataBaseDialect.MS_SQL,
29
+ {
30
+ "sql_query": """SELECT table_name
31
+ FROM
32
+ information_schema.tables
33
+ WHERE
34
+ table_type = 'BASE TABLE'
35
+ AND
36
+ table_catalog = 'autotests'
37
+ AND
38
+ table_schema = 'dbo';
39
+ """
40
+ },
41
+ [{"table_name": "Users"}, {"table_name": "Products"}],
42
+ marks=pytest.mark.skipif(
43
+ os.getenv("ENV") not in ("aws", "azure", "gcp"),
44
+ reason="MS SQL is only available in staging environments",
45
+ ),
46
+ id="DataBaseDialect.MS_SQL",
47
+ ),
21
48
  ]
@@ -22,6 +22,7 @@ pytestmark = pytest.mark.skipif(
22
22
  @pytest.mark.parametrize(
23
23
  "toolkit,tool_name,db_dialect,prompt,expected_response",
24
24
  sql_tools_test_data,
25
+ ids=[f"{row[2]}" for row in sql_tools_test_data],
25
26
  )
26
27
  def test_workflow_with_sql_tools_direct(
27
28
  workflow_with_tool,
@@ -59,6 +60,7 @@ def test_workflow_with_sql_tools_direct(
59
60
  @pytest.mark.parametrize(
60
61
  "toolkit,tool_name,db_dialect,prompt,expected_response",
61
62
  sql_tools_test_data,
63
+ ids=[f"{row[2]}" for row in sql_tools_test_data],
62
64
  )
63
65
  def test_workflow_with_sql_tools_with_hardcoded_args(
64
66
  workflow_with_tool,
@@ -97,6 +99,7 @@ def test_workflow_with_sql_tools_with_hardcoded_args(
97
99
  @pytest.mark.parametrize(
98
100
  "toolkit,tool_name,db_dialect,prompt,expected_response",
99
101
  sql_tools_test_data,
102
+ ids=[f"{row[2]}" for row in sql_tools_test_data],
100
103
  )
101
104
  def test_workflow_with_sql_tools_with_overriding_args(
102
105
  workflow_with_tool,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.134
3
+ Version: 0.1.135
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.134)
16
+ Requires-Dist: codemie-sdk-python (==0.1.135)
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)
@@ -59,7 +59,7 @@ codemie_test_harness/tests/conftest.py,sha256=2EFM-VIh5BvJAlVCK4GTggGu4UbHWt5_dg
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
62
- codemie_test_harness/tests/enums/integrations.py,sha256=WEfqnOLqa4m8CH8BjQ9bxty0-w4nsZGy0Ok6SuQoqow,143
62
+ codemie_test_harness/tests/enums/integrations.py,sha256=hG_cEKN0N5gtGHyrh3wuCpNAWhPyNOJaKsAw16iNshg,164
63
63
  codemie_test_harness/tests/enums/model_types.py,sha256=k07srBYIF9uRwbLWY9pBNYzi0s3Jdt8ajES9p-UmrYo,1185
64
64
  codemie_test_harness/tests/enums/tools.py,sha256=pGsHRGmPcLUqNtR2bKdRgsxdHw7HylXOWd9CPKPGOb0,5072
65
65
  codemie_test_harness/tests/integrations/__init__.py,sha256=5vnZbxvYQ1Y91O8DJG3QfBHWcdYsMii59cMBzsvHBCg,237
@@ -94,14 +94,14 @@ codemie_test_harness/tests/test_data/ado_wiki_tools_test_data.py,sha256=xvgEja5v
94
94
  codemie_test_harness/tests/test_data/ado_work_item_tools_test_data.py,sha256=MHou6QGjufyX5t1oexnq2Y4UCjlE17eeyMuIz6Ml62s,5693
95
95
  codemie_test_harness/tests/test_data/cloud_tools_test_data.py,sha256=vq0a5vx9cyxVnen-Cx5KCg_szO4Lje0UfFbp85XtaxY,4701
96
96
  codemie_test_harness/tests/test_data/codebase_tools_test_data.py,sha256=dpNKPtEZsBsjhnR3-pFBSkJRlExgjJ6fztK1spj04yI,3131
97
- codemie_test_harness/tests/test_data/data_management_tools_test_data.py,sha256=JS8bbp7kA4flBBrymRfRqnS-sIcwvXbx24LYkeZEMVE,3801
97
+ codemie_test_harness/tests/test_data/data_management_tools_test_data.py,sha256=olCcn8If6AETpmgNBE-ekmXAKlPGqt1MHGkxLacdU_0,4115
98
98
  codemie_test_harness/tests/test_data/direct_tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
99
99
  codemie_test_harness/tests/test_data/direct_tools/ado_test_plan_tools_test_data.py,sha256=bDhoeFRlmafSZdRgOTOz122Q5tja7TsqtOxSTypeGVA,13120
100
100
  codemie_test_harness/tests/test_data/direct_tools/ado_wiki_tools_test_data.py,sha256=qKNYW0kP32IQrRee8-H1mEWTUa5gb4UP0Me_4owtgeQ,1432
101
101
  codemie_test_harness/tests/test_data/direct_tools/ado_work_item_tools_test_data.py,sha256=L-MhuQyRxRbb1WDje1rONjIxc_QxkgzaM5ssMWglcp0,7417
102
102
  codemie_test_harness/tests/test_data/direct_tools/cloud_tools_test_data.py,sha256=aehfRdIo6uSh00jJUGhfXxdFIQa6_Rw7OUF6Lo1LXTM,35201
103
103
  codemie_test_harness/tests/test_data/direct_tools/codebase_tools_test_data.py,sha256=GYAs-CGyvZGxkuJKOi1Wod_hK1noSw8zmnlF7UE78eA,11087
104
- codemie_test_harness/tests/test_data/direct_tools/data_management_tools_test_data.py,sha256=AZjFvT20Ghz4mP7pSNq-sEuf-PLEPXedmeayCuOvecQ,714
104
+ codemie_test_harness/tests/test_data/direct_tools/data_management_tools_test_data.py,sha256=Eeba0oxKUmBEin2Scbv3VnLOEQRLmK6QR0qk5cRYRNM,1583
105
105
  codemie_test_harness/tests/test_data/direct_tools/direct_tools_test_data.py,sha256=y9awl1IA6EXGXyz05QzcNdt5z7Rk9J5LzIbfi4CFE3s,3233
106
106
  codemie_test_harness/tests/test_data/direct_tools/file_management_tools_test_data.py,sha256=8Y8D_pmHVnzhSnYNeiJng3dQYj5k1GkBZ8-BLHlB5kE,1380
107
107
  codemie_test_harness/tests/test_data/direct_tools/notification_tools_test_data.py,sha256=Blr7qIBEMxAh2_WRvFQr1hYt6wnez03v1b2SpEWha-o,1533
@@ -275,7 +275,7 @@ codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_ado_
275
275
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_ado_work_item_tools.py,sha256=4h3z3tUTqBLZPjDQCbnW2CkoGX0gEjZlDkYbLHSilZA,2799
276
276
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_cloud_tools.py,sha256=uYK0ASA0BpVYh_ozvVRLkEkHABDlkuu0VxuwyXBkHIQ,3539
277
277
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_codebase_tools.py,sha256=Kul_o9d4KIPzWUhKNOv82A9S_8-Z0ALaTeO5AO2Ltzs,3821
278
- codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_data_management_tools.py,sha256=igtMKIsL-_NnaN9-Hez697vwrA_-a1QZeafh1IzN4Bg,3737
278
+ codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_data_management_tools.py,sha256=eIIHRovi_tNvINjOVYOQRB9uWIzfebwnDF4fWdx47Og,3899
279
279
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_file_management_tools.py,sha256=W1Q8fwfUzslnMQX7ObM8o1r5kx_GyZTjVGh-1979VNQ,2673
280
280
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_notification_tools.py,sha256=esLfjDk2zGBpqX0D0VJYQKW4qwuvXy1afiFI8PyfMbc,2931
281
281
  codemie_test_harness/tests/workflow/direct_tools_calling/test_workflow_with_open_api_tools.py,sha256=9il7_0U3m8Ekvw5bCP0WQlJ-27RpKhViyqlrjqsS5_Y,2949
@@ -321,7 +321,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
321
321
  codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=Cxe5Yuy9JE_IEsnQOThpVIZQqpfLuHfDkF6JwLngDc8,890
322
322
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
323
323
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=tm0NvUf_UtzLPTYJWykYpsNoxoVs-Eh80guDmRwImwg,1106
324
- codemie_test_harness-0.1.134.dist-info/METADATA,sha256=_C34qXz4_gJ9nGFuh1iAbE4fl9w1pEnheiyvxxiVkx8,8998
325
- codemie_test_harness-0.1.134.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
326
- codemie_test_harness-0.1.134.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
327
- codemie_test_harness-0.1.134.dist-info/RECORD,,
324
+ codemie_test_harness-0.1.135.dist-info/METADATA,sha256=mEwdZM_OH1YLuq6wAZl-_86HU8QDdO5luFGYWA9U3Vg,8998
325
+ codemie_test_harness-0.1.135.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
326
+ codemie_test_harness-0.1.135.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
327
+ codemie_test_harness-0.1.135.dist-info/RECORD,,