pytestomatio 2.8.2.dev2__tar.gz → 2.8.2.dev3__tar.gz

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.
Files changed (40) hide show
  1. {pytestomatio-2.8.2.dev2/pytestomatio.egg-info → pytestomatio-2.8.2.dev3}/PKG-INFO +1 -2
  2. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pyproject.toml +2 -3
  3. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/main.py +0 -4
  4. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testomatio/testRunConfig.py +10 -9
  5. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3/pytestomatio.egg-info}/PKG-INFO +1 -2
  6. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio.egg-info/requires.txt +0 -1
  7. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/LICENSE +0 -0
  8. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/README.md +0 -0
  9. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/__init__.py +0 -0
  10. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/connect/__init__.py +0 -0
  11. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/connect/connector.py +0 -0
  12. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/connect/s3_connector.py +0 -0
  13. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/decor/__init__.py +0 -0
  14. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/decor/decorator_updater.py +0 -0
  15. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/decor/default.py +0 -0
  16. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/decor/pep8.py +0 -0
  17. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testing/__init__.py +0 -0
  18. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testing/code_collector.py +0 -0
  19. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testing/testItem.py +0 -0
  20. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testomatio/__init__.py +0 -0
  21. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testomatio/testomat_item.py +0 -0
  22. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/testomatio/testomatio.py +0 -0
  23. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/utils/__init__.py +0 -0
  24. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/utils/helper.py +0 -0
  25. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/utils/parser_setup.py +0 -0
  26. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio/utils/validations.py +0 -0
  27. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio.egg-info/SOURCES.txt +0 -0
  28. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio.egg-info/dependency_links.txt +0 -0
  29. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio.egg-info/entry_points.txt +0 -0
  30. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/pytestomatio.egg-info/top_level.txt +0 -0
  31. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/setup.cfg +0 -0
  32. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/__init__.py +0 -0
  33. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/sub_mob/__init__.py +0 -0
  34. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/sub_mob/sub_sub_class_test.py +0 -0
  35. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/sub_mob/sub_sub_test.py +0 -0
  36. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/test_class_sub.py +0 -0
  37. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/sub/test_sub.py +0 -0
  38. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/test_class_root.py +0 -0
  39. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/test_decorators.py +0 -0
  40. {pytestomatio-2.8.2.dev2 → pytestomatio-2.8.2.dev3}/tests/test_root.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytestomatio
3
- Version: 2.8.2.dev2
3
+ Version: 2.8.2.dev3
4
4
  Summary: Pytest plugin to sync test with testomat.io
5
5
  Author: Oleksii Ostapov, TikoQA
6
6
  Project-URL: Testomat.io, https://testomat.io/
@@ -19,7 +19,6 @@ Requires-Dist: boto3>=1.28.28
19
19
  Requires-Dist: libcst==1.1.0
20
20
  Requires-Dist: commitizen>=3.18.1
21
21
  Requires-Dist: autopep8>=2.1.0
22
- Requires-Dist: pytest-xdist>=3.6.1
23
22
 
24
23
  [![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
25
24
 
@@ -13,7 +13,7 @@ version_provider = "pep621"
13
13
  update_changelog_on_bump = true
14
14
  [project]
15
15
  name = "pytestomatio"
16
- version = "2.8.2.dev2"
16
+ version = "2.8.2.dev3"
17
17
 
18
18
  dependencies = [
19
19
  "requests>=2.29.0",
@@ -21,8 +21,7 @@ dependencies = [
21
21
  "boto3>=1.28.28",
22
22
  "libcst==1.1.0",
23
23
  "commitizen>=3.18.1",
24
- "autopep8>=2.1.0",
25
- "pytest-xdist>=3.6.1"
24
+ "autopep8>=2.1.0"
26
25
  ]
27
26
 
28
27
  authors = [
@@ -11,7 +11,6 @@ from pytestomatio.utils.helper import add_and_enrich_tests, get_test_mapping, co
11
11
  from pytestomatio.utils.parser_setup import parser_options
12
12
  from pytestomatio.utils import helper
13
13
  from pytestomatio.utils import validations
14
- from xdist.plugin import is_xdist_controller, get_xdist_worker_id
15
14
 
16
15
  log = logging.getLogger(__name__)
17
16
  log.setLevel('INFO')
@@ -54,9 +53,6 @@ def pytest_configure(config: Config):
54
53
  run_details = pytest.testomatio.connector.create_test_run(**run.to_dict())
55
54
  run_id = run_details.get('uid')
56
55
  run.save_run_id(run_id)
57
- else:
58
- # for xdist - worker process - do nothing
59
- pass
60
56
 
61
57
 
62
58
 
@@ -6,17 +6,18 @@ from typing import Optional
6
6
 
7
7
  class TestRunConfig:
8
8
  def __init__(self):
9
- self.test_run_id = os.environ.get('TESTOMATIO_RUN_ID') or None
10
- run = os.environ.get('TESTOMATIO_RUN') or None
11
- title = os.environ.get('TESTOMATIO_TITLE') or None
12
- run_or_title = run if run else title
13
- self.title = run_or_title if run_or_title else 'test run at ' + dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
9
+ run_id = os.environ.get('TESTOMATIO_RUN_ID') or os.environ.get('TESTOMATIO_RUN')
10
+ title = os.environ.get('TESTOMATIO_TITLE') if os.environ.get('TESTOMATIO_TITLE') else 'test run at ' + dt.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
11
+ shared_run = os.environ.get('TESTOMATIO_SHARED_RUN') in ['True', 'true', '1']
12
+ self.test_run_id = run_id
13
+ self.title = title
14
14
  self.environment = safe_string_list(os.environ.get('TESTOMATIO_ENV'))
15
15
  self.label = safe_string_list(os.environ.get('TESTOMATIO_LABEL'))
16
- self.group_title = os.environ.get('TESTOMATIO_RUNGROUP_TITLE') or None
17
- self.parallel = True
18
- # stands for run with shards
19
- self.shared_run = run_or_title is not None
16
+ self.group_title = os.environ.get('TESTOMATIO_RUNGROUP_TITLE')
17
+ # This allows to report tests to the test run by it's id. https://docs.testomat.io/getting-started/running-automated-tests/#reporting-parallel-tests
18
+ self.parallel = False if shared_run else True
19
+ # This allows using test run title to group tests under a single test run. This is needed when running tests in different processes or servers.
20
+ self.shared_run = shared_run
20
21
  self.status_request = {}
21
22
  self.build_url = self.resolve_build_url()
22
23
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pytestomatio
3
- Version: 2.8.2.dev2
3
+ Version: 2.8.2.dev3
4
4
  Summary: Pytest plugin to sync test with testomat.io
5
5
  Author: Oleksii Ostapov, TikoQA
6
6
  Project-URL: Testomat.io, https://testomat.io/
@@ -19,7 +19,6 @@ Requires-Dist: boto3>=1.28.28
19
19
  Requires-Dist: libcst==1.1.0
20
20
  Requires-Dist: commitizen>=3.18.1
21
21
  Requires-Dist: autopep8>=2.1.0
22
- Requires-Dist: pytest-xdist>=3.6.1
23
22
 
24
23
  [![Support Ukraine Badge](https://bit.ly/support-ukraine-now)](https://github.com/support-ukraine/support-ukraine)
25
24
 
@@ -4,4 +4,3 @@ boto3>=1.28.28
4
4
  libcst==1.1.0
5
5
  commitizen>=3.18.1
6
6
  autopep8>=2.1.0
7
- pytest-xdist>=3.6.1