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

File without changes
@@ -12,7 +12,7 @@ except Exception:
12
12
  from .constants import CONSOLE
13
13
 
14
14
 
15
- def _resolve_tests_path_and_root() -> tuple[str, str]:
15
+ def resolve_tests_path_and_root() -> tuple[str, str]:
16
16
  """Resolve tests path and working directory.
17
17
 
18
18
  Returns:
@@ -46,7 +46,7 @@ def _resolve_tests_path_and_root() -> tuple[str, str]:
46
46
  def build_pytest_cmd(
47
47
  workers: int, marks: str, reruns: int, extra: Iterable[str] | None = None
48
48
  ) -> tuple[List[str], str]:
49
- tests_path, root_dir = _resolve_tests_path_and_root()
49
+ tests_path, root_dir = resolve_tests_path_and_root()
50
50
  cmd = [sys.executable, "-m", "pytest", tests_path]
51
51
  if workers:
52
52
  cmd += ["-n", str(workers)]
@@ -6,8 +6,11 @@ from pathlib import Path
6
6
  from dotenv import load_dotenv
7
7
 
8
8
  from codemie_test_harness.tests.utils.aws_parameters_store import AwsParameterStore
9
+ from codemie_test_harness.cli.runner import resolve_tests_path_and_root
9
10
 
10
- load_dotenv()
11
+ _, root_dir = resolve_tests_path_and_root()
12
+ env_file_path = Path(root_dir) / ".env"
13
+ load_dotenv(env_file_path)
11
14
 
12
15
  if os.getenv("AWS_ACCESS_KEY") and os.getenv("AWS_SECRET_KEY"):
13
16
  aws_parameters_store = AwsParameterStore.get_instance(
@@ -20,10 +23,13 @@ if os.getenv("AWS_ACCESS_KEY") and os.getenv("AWS_SECRET_KEY"):
20
23
  f"/codemie/autotests/dotenv/{os.getenv('ENV')}"
21
24
  )
22
25
 
23
- with open(Path(__file__).parent.parent / ".env", "w") as file:
26
+ # Use the .env path that was loaded
27
+
28
+ with open(env_file_path, "w") as file:
24
29
  file.write(dotenv)
25
30
 
26
- load_dotenv()
31
+ # Reload .env file with AWS parameters
32
+ load_dotenv(env_file_path)
27
33
 
28
34
  LANGFUSE_TRACES_ENABLED = (
29
35
  os.getenv("LANGFUSE_TRACES_ENABLED", "false").lower() == "true"
@@ -22,23 +22,25 @@ from codemie_sdk.models.integration import (
22
22
  Integration,
23
23
  )
24
24
  from codemie_sdk.models.workflow import WorkflowCreateRequest, WorkflowMode, Workflow
25
- from tests import PROJECT, autotest_entity_prefix
26
- from tests.test_data.google_datasource_test_data import GOOGLE_DOC_URL
27
- from tests.utils.assistant_utils import AssistantUtils
28
- from tests.utils.aws_parameters_store import CredentialsUtil
29
- from tests.utils.base_utils import get_random_name, wait_for_entity
30
- from tests.utils.client_factory import get_client
31
- from tests.utils.constants import TESTS_PATH
32
- from tests.utils.datasource_utils import DataSourceUtils
33
- from tests.utils.gitbud_utils import GitBudUtils
34
- from tests.utils.integration_utils import IntegrationUtils
35
- from tests.utils.logger_util import setup_logger
36
- from tests.utils.notification_utils import GmailUtils
37
- from tests.utils.provider_utils import ProviderUtils
38
- from tests.utils.search_utils import SearchUtils
39
- from tests.utils.similarity_check import SimilarityCheck
40
- from tests.utils.workflow_utils import WorkflowUtils
41
- from tests.utils.yaml_utils import (
25
+ from codemie_test_harness.tests import PROJECT, autotest_entity_prefix
26
+ from codemie_test_harness.tests.test_data.google_datasource_test_data import (
27
+ GOOGLE_DOC_URL,
28
+ )
29
+ from codemie_test_harness.tests.utils.assistant_utils import AssistantUtils
30
+ from codemie_test_harness.tests.utils.aws_parameters_store import CredentialsUtil
31
+ from codemie_test_harness.tests.utils.base_utils import get_random_name, wait_for_entity
32
+ from codemie_test_harness.tests.utils.client_factory import get_client
33
+ from codemie_test_harness.tests.utils.constants import TESTS_PATH
34
+ from codemie_test_harness.tests.utils.datasource_utils import DataSourceUtils
35
+ from codemie_test_harness.tests.utils.gitbud_utils import GitBudUtils
36
+ from codemie_test_harness.tests.utils.integration_utils import IntegrationUtils
37
+ from codemie_test_harness.tests.utils.logger_util import setup_logger
38
+ from codemie_test_harness.tests.utils.notification_utils import GmailUtils
39
+ from codemie_test_harness.tests.utils.provider_utils import ProviderUtils
40
+ from codemie_test_harness.tests.utils.search_utils import SearchUtils
41
+ from codemie_test_harness.tests.utils.similarity_check import SimilarityCheck
42
+ from codemie_test_harness.tests.utils.workflow_utils import WorkflowUtils
43
+ from codemie_test_harness.tests.utils.yaml_utils import (
42
44
  WorkflowYamlModel,
43
45
  AssistantModel,
44
46
  ToolModel,
@@ -7,8 +7,8 @@ from hamcrest import (
7
7
  all_of,
8
8
  )
9
9
 
10
- from tests.utils.base_utils import get_random_name
11
- from tests.utils.provider_utils import ProviderUtils
10
+ from codemie_test_harness.tests.utils.base_utils import get_random_name
11
+ from codemie_test_harness.tests.utils.provider_utils import ProviderUtils
12
12
 
13
13
 
14
14
  @pytest.fixture(scope="session")
@@ -1,8 +1,12 @@
1
1
  import os
2
+ from pathlib import Path
2
3
 
3
4
  from dotenv import load_dotenv
5
+ from codemie_test_harness.cli.runner import resolve_tests_path_and_root
4
6
 
5
- load_dotenv()
7
+ _, root_dir = resolve_tests_path_and_root()
8
+ env_path = Path(root_dir) / ".env"
9
+ load_dotenv(env_path)
6
10
 
7
11
  api_domain = os.getenv("CODEMIE_API_DOMAIN")
8
12
  verify_ssl = os.getenv("VERIFY_SSL", "").lower() == "true"
@@ -6,13 +6,13 @@ from typing import Optional, Dict, Any
6
6
  import requests
7
7
  from codemie_sdk import CodeMieClient
8
8
 
9
- from tests import autotest_entity_prefix
10
- from tests.utils import api_domain, verify_ssl
11
- from tests.utils.base_utils import (
9
+ from codemie_test_harness.tests import autotest_entity_prefix
10
+ from codemie_test_harness.tests.utils import api_domain, verify_ssl
11
+ from codemie_test_harness.tests.utils.base_utils import (
12
12
  BaseUtils,
13
13
  get_random_name,
14
14
  )
15
- from tests.utils.http_utils import RequestHandler
15
+ from codemie_test_harness.tests.utils.http_utils import RequestHandler
16
16
 
17
17
  logger = logging.getLogger(__name__)
18
18
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.131
3
+ Version: 0.1.133
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.131)
16
+ Requires-Dist: codemie-sdk-python (==0.1.133)
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)
@@ -1,14 +1,15 @@
1
1
  codemie_test_harness/.env,sha256=7eF8KL_zh_16L88NfGkXpm1XVHjzUs8k6ko78eU0wAc,104
2
+ codemie_test_harness/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
3
  codemie_test_harness/cli/__init__.py,sha256=da1PTClDMl-IBkrSvq6JC1lnS-K_BASzCvxVhNxN5Ls,13
3
4
  codemie_test_harness/cli/cli.py,sha256=KayyiNCsfF1dFunqOEwC_DM3c5GWl8E9rx-_Tw5TMwA,5969
4
5
  codemie_test_harness/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
6
  codemie_test_harness/cli/commands/config_cmd.py,sha256=iCV7qJZrESIKZQdg_AmhuPz1EZLN2s-UpbdzzIjrVEU,1353
6
7
  codemie_test_harness/cli/commands/run_cmd.py,sha256=T5js1hwHKi1QuF-kLwP3c-GMtiO9QO15H3JJc7nzpp4,1052
7
8
  codemie_test_harness/cli/constants.py,sha256=956_apPJ4MjhnKo1ZtDooXCd2N89J3vyAB-J9-SOr7U,1637
8
- codemie_test_harness/cli/runner.py,sha256=IQC7up2qnQoOMf_oCAGSY-dfQbAXH1gnrar0_NM0wME,2351
9
+ codemie_test_harness/cli/runner.py,sha256=5VAL4noqiKrGjo5oYVJKzt4QNmkZFTe1Mw6Mll9uGfc,2349
9
10
  codemie_test_harness/cli/utils.py,sha256=NlRa8VFbXTbD74jfUaSqbccGNu2R1dUIg8d5SyDTmIM,1136
10
11
  codemie_test_harness/pytest.ini,sha256=Sxr-zVHZ9hJt2Ks0x7xxjh_SA-KhD-vRrDWAfDd9QKs,192
11
- codemie_test_harness/tests/__init__.py,sha256=VD47b_NmFnTzr1RxAY9NllZMESBxKWeaEXS_xJo4zls,1015
12
+ codemie_test_harness/tests/__init__.py,sha256=ASrWeb7WAqehvQkvz3g6h57stJuWAPj7jMG6vPvYalE,1257
12
13
  codemie_test_harness/tests/assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
14
  codemie_test_harness/tests/assistant/datasource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
15
  codemie_test_harness/tests/assistant/datasource/test_code_datasource.py,sha256=NZmw3efv_FBkyi-1FnkQjNknlg34w4PEFv0rodUvCFw,2599
@@ -54,7 +55,7 @@ codemie_test_harness/tests/assistant/tools/servicenow/__init__.py,sha256=47DEQpj
54
55
  codemie_test_harness/tests/assistant/tools/servicenow/test_servicenow_tools.py,sha256=JV_n6COaCsd0_rxQBJvvLZfPdo8BsCbG8Ti-UpzFvfQ,644
55
56
  codemie_test_harness/tests/assistant/tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
57
  codemie_test_harness/tests/assistant/tools/vcs/test_assistant_with_vcs_tools.py,sha256=5-QybLWmYSqHG4Sqr-IN-vNcStV4skSwCJQN44Nfats,922
57
- codemie_test_harness/tests/conftest.py,sha256=PdhMQMvYlhklKW4KuEda20HnzfO2eBoIsQ5AafCYd0Q,25719
58
+ codemie_test_harness/tests/conftest.py,sha256=2EFM-VIh5BvJAlVCK4GTggGu4UbHWt5_dgFbuBcY_c0,26085
58
59
  codemie_test_harness/tests/e2e/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
59
60
  codemie_test_harness/tests/e2e/test_e2e.py,sha256=RUvSu_uNInU1OFfkNft3-Cmd0KZV7JdHqCxSK2ZWXHw,6257
60
61
  codemie_test_harness/tests/enums/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -72,7 +73,7 @@ codemie_test_harness/tests/llm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5
72
73
  codemie_test_harness/tests/llm/assistants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
74
  codemie_test_harness/tests/llm/assistants/test_llm.py,sha256=pLF1ETtwQI3y2uz08wfhr3fGIADFAbbGxEwosHhLjzE,3246
74
75
  codemie_test_harness/tests/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
- codemie_test_harness/tests/providers/test_providers_endpoints.py,sha256=5A2JJvqsetcAP3IoqK4eoiebsdUC5rxr4gJ-sSFRq6M,7836
76
+ codemie_test_harness/tests/providers/test_providers_endpoints.py,sha256=x2ok3MFmeqxh3Y22hC4cpHPXjgjE5pNHIQX_7rFMq7w,7878
76
77
  codemie_test_harness/tests/search/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
77
78
  codemie_test_harness/tests/search/test_search_assistant.py,sha256=--r7plzqOthG4ZG3DRhMrShxeU7g2yWw0GDJjSKuSsM,3233
78
79
  codemie_test_harness/tests/search/test_search_datasource.py,sha256=zQBAdYme-EZRSjPgYQZvzDNZX1DXTJs5MkjEdLUa1wY,6681
@@ -206,7 +207,7 @@ codemie_test_harness/tests/ui/test_workflow_details.py,sha256=PkLMhvQSd3XOYZMj8Q
206
207
  codemie_test_harness/tests/ui/test_workflow_executions_page.py,sha256=9GMFNKtIO3AN8bnaM8XIcoR79X09_vLTF4tbMJ-ebCw,11644
207
208
  codemie_test_harness/tests/ui/test_workflow_templates.py,sha256=A6eaR-7M5VXoPlUJfKIAzqdxVquC1WnzwzMpOg74dwc,4558
208
209
  codemie_test_harness/tests/ui/test_workflows.py,sha256=_UQT9soqxV68aqFt0V3KJ3iJFA55kzE891EJIER9kk8,3464
209
- codemie_test_harness/tests/utils/__init__.py,sha256=IytbI4DHEFmsvw_TJJVUNP6ZB6upkajgpSkw_MAurwc,162
210
+ codemie_test_harness/tests/utils/__init__.py,sha256=Bu1sRfq1DeSYdW979HKcg3LcG-yYHjZWLsPDiy1Wmus,346
210
211
  codemie_test_harness/tests/utils/assistant_utils.py,sha256=2ziNJlLDDso-USjktN32bKX64x9pSkwC_Cj7rKEXlig,5419
211
212
  codemie_test_harness/tests/utils/aws_parameters_store.py,sha256=GyL4l8Z6jtV2aRtWV3mFDL4sk6OxDT0X5v0yYq3subI,20184
212
213
  codemie_test_harness/tests/utils/base_utils.py,sha256=tfishCUxO3iEuasWOifoF9_fXspm4uIHS26Ryqu-NxA,5998
@@ -220,7 +221,7 @@ codemie_test_harness/tests/utils/integration_utils.py,sha256=FN9OORtIahATyjzfvwV
220
221
  codemie_test_harness/tests/utils/json_utils.py,sha256=PWO4Ixxgta_zkdq-8umcP9qwDSi9JFxMuaT2NW3v1eI,226
221
222
  codemie_test_harness/tests/utils/logger_util.py,sha256=6Kca4pLxyTYnUgm2i3j19DdZSH6XUSGXPjHtExx33QU,828
222
223
  codemie_test_harness/tests/utils/notification_utils.py,sha256=8HWgkTjcMDOoXq_8vzKVx8iSoVb4jSlx2_xJvRxa3V0,3480
223
- codemie_test_harness/tests/utils/provider_utils.py,sha256=jxyDxiC1TKqnev1xtmsXLKNJbDqAG12kGDB1tuK_O1g,5077
224
+ codemie_test_harness/tests/utils/provider_utils.py,sha256=cmem2-IaJmQZ_X_5UL1mOiZo8dZ_jDxV-OAaZY7Ao_M,5161
224
225
  codemie_test_harness/tests/utils/pytest_utils.py,sha256=k-mEjX2qpnh37sqKpJqYhZT6BV9974y_KaAhv8Xj9GI,284
225
226
  codemie_test_harness/tests/utils/search_utils.py,sha256=xxU30zMcVkb_rMPMjjDTt5_iEoMOLU4xCE_OmiTToMY,1129
226
227
  codemie_test_harness/tests/utils/similarity_check.py,sha256=1U66NGh6esISKABodtVobE2WnuFt0f6vcK3qUri6ZqU,1485
@@ -320,7 +321,7 @@ codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/__init__.
320
321
  codemie_test_harness/tests/workflow/virtual_assistant_tools/servicenow/test_workflow_with_servicenow_tools.py,sha256=Cxe5Yuy9JE_IEsnQOThpVIZQqpfLuHfDkF6JwLngDc8,890
321
322
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
322
323
  codemie_test_harness/tests/workflow/virtual_assistant_tools/vcs/test_workflow_with_vcs_tools.py,sha256=tm0NvUf_UtzLPTYJWykYpsNoxoVs-Eh80guDmRwImwg,1106
323
- codemie_test_harness-0.1.131.dist-info/METADATA,sha256=WN8qngZXDZyTKlrqLuw8kePITLb9Ge1R6BKJFM31mtQ,8998
324
- codemie_test_harness-0.1.131.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
325
- codemie_test_harness-0.1.131.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
326
- codemie_test_harness-0.1.131.dist-info/RECORD,,
324
+ codemie_test_harness-0.1.133.dist-info/METADATA,sha256=cZM75Oo9Z0xSh5zI43mzmjAnKQ1VLwY655LJSyrwawc,8998
325
+ codemie_test_harness-0.1.133.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
326
+ codemie_test_harness-0.1.133.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
327
+ codemie_test_harness-0.1.133.dist-info/RECORD,,