codemie-test-harness 0.1.132__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.

@@ -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"
@@ -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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: codemie-test-harness
3
- Version: 0.1.132
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.132)
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)
@@ -6,10 +6,10 @@ codemie_test_harness/cli/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeR
6
6
  codemie_test_harness/cli/commands/config_cmd.py,sha256=iCV7qJZrESIKZQdg_AmhuPz1EZLN2s-UpbdzzIjrVEU,1353
7
7
  codemie_test_harness/cli/commands/run_cmd.py,sha256=T5js1hwHKi1QuF-kLwP3c-GMtiO9QO15H3JJc7nzpp4,1052
8
8
  codemie_test_harness/cli/constants.py,sha256=956_apPJ4MjhnKo1ZtDooXCd2N89J3vyAB-J9-SOr7U,1637
9
- codemie_test_harness/cli/runner.py,sha256=IQC7up2qnQoOMf_oCAGSY-dfQbAXH1gnrar0_NM0wME,2351
9
+ codemie_test_harness/cli/runner.py,sha256=5VAL4noqiKrGjo5oYVJKzt4QNmkZFTe1Mw6Mll9uGfc,2349
10
10
  codemie_test_harness/cli/utils.py,sha256=NlRa8VFbXTbD74jfUaSqbccGNu2R1dUIg8d5SyDTmIM,1136
11
11
  codemie_test_harness/pytest.ini,sha256=Sxr-zVHZ9hJt2Ks0x7xxjh_SA-KhD-vRrDWAfDd9QKs,192
12
- codemie_test_harness/tests/__init__.py,sha256=VD47b_NmFnTzr1RxAY9NllZMESBxKWeaEXS_xJo4zls,1015
12
+ codemie_test_harness/tests/__init__.py,sha256=ASrWeb7WAqehvQkvz3g6h57stJuWAPj7jMG6vPvYalE,1257
13
13
  codemie_test_harness/tests/assistant/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  codemie_test_harness/tests/assistant/datasource/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  codemie_test_harness/tests/assistant/datasource/test_code_datasource.py,sha256=NZmw3efv_FBkyi-1FnkQjNknlg34w4PEFv0rodUvCFw,2599
@@ -207,7 +207,7 @@ codemie_test_harness/tests/ui/test_workflow_details.py,sha256=PkLMhvQSd3XOYZMj8Q
207
207
  codemie_test_harness/tests/ui/test_workflow_executions_page.py,sha256=9GMFNKtIO3AN8bnaM8XIcoR79X09_vLTF4tbMJ-ebCw,11644
208
208
  codemie_test_harness/tests/ui/test_workflow_templates.py,sha256=A6eaR-7M5VXoPlUJfKIAzqdxVquC1WnzwzMpOg74dwc,4558
209
209
  codemie_test_harness/tests/ui/test_workflows.py,sha256=_UQT9soqxV68aqFt0V3KJ3iJFA55kzE891EJIER9kk8,3464
210
- codemie_test_harness/tests/utils/__init__.py,sha256=IytbI4DHEFmsvw_TJJVUNP6ZB6upkajgpSkw_MAurwc,162
210
+ codemie_test_harness/tests/utils/__init__.py,sha256=Bu1sRfq1DeSYdW979HKcg3LcG-yYHjZWLsPDiy1Wmus,346
211
211
  codemie_test_harness/tests/utils/assistant_utils.py,sha256=2ziNJlLDDso-USjktN32bKX64x9pSkwC_Cj7rKEXlig,5419
212
212
  codemie_test_harness/tests/utils/aws_parameters_store.py,sha256=GyL4l8Z6jtV2aRtWV3mFDL4sk6OxDT0X5v0yYq3subI,20184
213
213
  codemie_test_harness/tests/utils/base_utils.py,sha256=tfishCUxO3iEuasWOifoF9_fXspm4uIHS26Ryqu-NxA,5998
@@ -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.132.dist-info/METADATA,sha256=JssHv0o_wKQ6-Zjzq7RY7Kd7fqbhWs3tSsn2r1TTSIg,8998
325
- codemie_test_harness-0.1.132.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
326
- codemie_test_harness-0.1.132.dist-info/entry_points.txt,sha256=n98t-EOM5M1mnMl_j2X4siyeO9zr0WD9a5LF7JyElIM,73
327
- codemie_test_harness-0.1.132.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,,