testit-python-commons 4.1.9.post570__tar.gz → 4.1.10__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.
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/PKG-INFO +2 -2
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/setup.py +2 -2
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/app_properties.py +2 -2
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/dynamic_methods.py +10 -4
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/plugin_manager.py +9 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/sync_storage/sync_storage_runner.py +1 -1
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
- testit_python_commons-4.1.10/src/testit_python_commons.egg-info/requires.txt +3 -0
- testit_python_commons-4.1.9.post570/src/testit_python_commons.egg-info/requires.txt +0 -3
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/README.md +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/setup.cfg +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/completion_api.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/health_api.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/system_api.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/test_results_api.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api/workers_api.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/api_client.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/apis/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/configuration.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/exceptions.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/completion_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/health_status_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/register_request.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/register_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/set_worker_status_request.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/set_worker_status_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/shutdown_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/test_result_cut_api_model.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model/test_result_save_response.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/model_utils.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/models/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/api_client_syncstorage/rest.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/configurations/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/configurations/properties_names.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/status_type.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/sync_storage/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_app_properties.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_dynamic_methods.py +0 -0
- {testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_html_escape_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 4.1.
|
|
3
|
+
Version: 4.1.10
|
|
4
4
|
Summary: Python commons for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: pluggy
|
|
19
19
|
Requires-Dist: tomli
|
|
20
|
-
Requires-Dist: testit-api-client==7.5.5
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.5
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: author-email
|
|
23
23
|
Dynamic: classifier
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
from setuptools import find_packages, setup
|
|
2
2
|
|
|
3
|
-
VERSION = "4.1.
|
|
3
|
+
VERSION = "4.1.10"
|
|
4
4
|
|
|
5
5
|
setup(
|
|
6
6
|
name='testit-python-commons',
|
|
@@ -25,5 +25,5 @@ setup(
|
|
|
25
25
|
py_modules=['testit', 'testit_python_commons'],
|
|
26
26
|
packages=find_packages(where='src'),
|
|
27
27
|
package_dir={'': 'src'},
|
|
28
|
-
install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.5
|
|
28
|
+
install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.5']
|
|
29
29
|
)
|
|
@@ -105,8 +105,8 @@ class AppProperties:
|
|
|
105
105
|
if adapter_mode == AdapterMode.NEW_TEST_RUN:
|
|
106
106
|
try:
|
|
107
107
|
uuid.UUID(str(properties.get(PropertiesNames.TEST_RUN_ID)))
|
|
108
|
-
logging.
|
|
109
|
-
|
|
108
|
+
logging.warning('Adapter mode "2" is enabled. Config should not contains test run id!')
|
|
109
|
+
properties[PropertiesNames.TEST_RUN_ID] = None
|
|
110
110
|
except ValueError:
|
|
111
111
|
pass
|
|
112
112
|
|
|
@@ -68,7 +68,10 @@ def attachments(*attachments_paths):
|
|
|
68
68
|
active_step = TmsPluginManager.get_step_manager().get_active_step()
|
|
69
69
|
|
|
70
70
|
if active_step:
|
|
71
|
-
|
|
71
|
+
adapter_manager = TmsPluginManager.get_adapter_manager()
|
|
72
|
+
if not adapter_manager:
|
|
73
|
+
return
|
|
74
|
+
attachment_ids = adapter_manager.load_attachments(attachments_paths)
|
|
72
75
|
|
|
73
76
|
active_step.set_attachments(active_step.get_attachments() + attachment_ids)
|
|
74
77
|
else:
|
|
@@ -92,13 +95,16 @@ def addAttachments(data, is_text: bool = False, name: str = None): # noqa: N80
|
|
|
92
95
|
|
|
93
96
|
@adapter_logger
|
|
94
97
|
def __add_attachments_to_step(step, data, is_text: bool = False, name: str = None):
|
|
98
|
+
adapter_manager = TmsPluginManager.get_adapter_manager()
|
|
99
|
+
if not adapter_manager:
|
|
100
|
+
return
|
|
95
101
|
if is_text:
|
|
96
|
-
attachment_ids =
|
|
102
|
+
attachment_ids = adapter_manager.create_attachment(data, name)
|
|
97
103
|
else:
|
|
98
104
|
if isinstance(data, str):
|
|
99
|
-
attachment_ids =
|
|
105
|
+
attachment_ids = adapter_manager.load_attachments([data])
|
|
100
106
|
elif isinstance(data, tuple) or isinstance(data, list):
|
|
101
|
-
attachment_ids =
|
|
107
|
+
attachment_ids = adapter_manager.load_attachments(data)
|
|
102
108
|
else:
|
|
103
109
|
logging.warning(f'File ({data}) not found!')
|
|
104
110
|
return
|
|
@@ -12,6 +12,12 @@ class TmsPluginManager:
|
|
|
12
12
|
__fixture_manager = None
|
|
13
13
|
__step_manager = None
|
|
14
14
|
__logger = None
|
|
15
|
+
# None: non-pytest or undecided; False: pytest without --testit; True: pytest with --testit
|
|
16
|
+
__pytest_tms_report = None
|
|
17
|
+
|
|
18
|
+
@classmethod
|
|
19
|
+
def set_pytest_tms_report(cls, enabled):
|
|
20
|
+
cls.__pytest_tms_report = enabled
|
|
15
21
|
|
|
16
22
|
@classmethod
|
|
17
23
|
def get_plugin_manager(cls):
|
|
@@ -22,6 +28,9 @@ class TmsPluginManager:
|
|
|
22
28
|
|
|
23
29
|
@classmethod
|
|
24
30
|
def get_adapter_manager(cls, option=None):
|
|
31
|
+
if cls.__pytest_tms_report is False:
|
|
32
|
+
return None
|
|
33
|
+
|
|
25
34
|
if cls.__adapter_manager is None:
|
|
26
35
|
from testit_python_commons.client.client_configuration import (
|
|
27
36
|
ClientConfiguration,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 4.1.
|
|
3
|
+
Version: 4.1.10
|
|
4
4
|
Summary: Python commons for Test IT
|
|
5
5
|
Home-page: https://github.com/testit-tms/adapters-python/
|
|
6
6
|
Author: Integration team
|
|
@@ -17,7 +17,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
Requires-Dist: pluggy
|
|
19
19
|
Requires-Dist: tomli
|
|
20
|
-
Requires-Dist: testit-api-client==7.5.5
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.5
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: author-email
|
|
23
23
|
Dynamic: classifier
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_app_properties.py
RENAMED
|
File without changes
|
{testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_dynamic_methods.py
RENAMED
|
File without changes
|
{testit_python_commons-4.1.9.post570 → testit_python_commons-4.1.10}/tests/test_html_escape_utils.py
RENAMED
|
File without changes
|