testit-python-commons 3.12.0__tar.gz → 3.12.2__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-3.12.0 → testit_python_commons-3.12.2}/PKG-INFO +2 -2
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/setup.py +2 -2
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/converter.py +6 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/decorators.py +10 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/dynamic_methods.py +11 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/test_result.py +11 -2
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
- testit_python_commons-3.12.2/src/testit_python_commons.egg-info/requires.txt +3 -0
- testit_python_commons-3.12.0/src/testit_python_commons.egg-info/requires.txt +0 -3
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/README.md +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/setup.cfg +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/app_properties.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/tests/test_app_properties.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/tests/test_dynamic_methods.py +0 -0
- {testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/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: 3.12.
|
|
3
|
+
Version: 3.12.2
|
|
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.
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.2
|
|
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 = "3.12.
|
|
3
|
+
VERSION = "3.12.2"
|
|
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.
|
|
28
|
+
install_requires=['pluggy', 'tomli', 'testit-api-client==7.5.2']
|
|
29
29
|
)
|
|
@@ -159,6 +159,7 @@ class Converter:
|
|
|
159
159
|
description=test_result.get_description(),
|
|
160
160
|
links=cls.links_to_links_create_api_model(test_result.get_links()),
|
|
161
161
|
labels=test_result.get_labels(),
|
|
162
|
+
tags=test_result.get_tags(),
|
|
162
163
|
should_create_work_item=test_result.get_automatic_creation_test_cases(),
|
|
163
164
|
external_key=test_result.get_external_key()
|
|
164
165
|
)
|
|
@@ -185,6 +186,7 @@ class Converter:
|
|
|
185
186
|
description=test_result.get_description(),
|
|
186
187
|
links=cls.links_to_links_create_api_model(test_result.get_links()),
|
|
187
188
|
labels=test_result.get_labels(),
|
|
189
|
+
tags=test_result.get_tags(),
|
|
188
190
|
should_create_work_item=test_result.get_automatic_creation_test_cases(),
|
|
189
191
|
external_key=test_result.get_external_key()
|
|
190
192
|
)
|
|
@@ -212,6 +214,7 @@ class Converter:
|
|
|
212
214
|
description=test_result.get_description(),
|
|
213
215
|
links=cls.links_to_links_put_model(test_result.get_links()),
|
|
214
216
|
labels=test_result.get_labels(),
|
|
217
|
+
tags=test_result.get_tags(),
|
|
215
218
|
external_key=test_result.get_external_key()
|
|
216
219
|
)
|
|
217
220
|
else:
|
|
@@ -231,6 +234,7 @@ class Converter:
|
|
|
231
234
|
description=test_result.get_description(),
|
|
232
235
|
links=cls.links_to_links_put_model(test_result.get_links()),
|
|
233
236
|
labels=test_result.get_labels(),
|
|
237
|
+
tags=test_result.get_tags(),
|
|
234
238
|
external_key=test_result.get_external_key()
|
|
235
239
|
)
|
|
236
240
|
|
|
@@ -257,6 +261,7 @@ class Converter:
|
|
|
257
261
|
description=test_result.get_description(),
|
|
258
262
|
links=cls.links_to_links_put_model(test_result.get_links()),
|
|
259
263
|
labels=test_result.get_labels(),
|
|
264
|
+
tags=test_result.get_tags(),
|
|
260
265
|
external_key=test_result.get_external_key()
|
|
261
266
|
)
|
|
262
267
|
else:
|
|
@@ -276,6 +281,7 @@ class Converter:
|
|
|
276
281
|
description=test_result.get_description(),
|
|
277
282
|
links=cls.links_to_links_put_model(test_result.get_links()),
|
|
278
283
|
labels=test_result.get_labels(),
|
|
284
|
+
tags=test_result.get_tags(),
|
|
279
285
|
external_key=test_result.get_external_key()
|
|
280
286
|
)
|
|
281
287
|
|
|
@@ -124,6 +124,7 @@ def description(test_description: str):
|
|
|
124
124
|
return outer
|
|
125
125
|
|
|
126
126
|
|
|
127
|
+
@Utils.deprecated('Use "tags" instead.')
|
|
127
128
|
@adapter_logger
|
|
128
129
|
def labels(*test_labels: str):
|
|
129
130
|
def outer(function):
|
|
@@ -133,6 +134,15 @@ def labels(*test_labels: str):
|
|
|
133
134
|
return outer
|
|
134
135
|
|
|
135
136
|
|
|
137
|
+
@adapter_logger
|
|
138
|
+
def tags(*test_tags: str):
|
|
139
|
+
def outer(function):
|
|
140
|
+
function.test_tags = test_tags
|
|
141
|
+
return inner(function)
|
|
142
|
+
|
|
143
|
+
return outer
|
|
144
|
+
|
|
145
|
+
|
|
136
146
|
@Utils.deprecated('Use "links" instead.')
|
|
137
147
|
@adapter_logger
|
|
138
148
|
def link(url: str, title: str = None, type: str = None, description: str = None): # noqa: A002,VNE003
|
|
@@ -166,6 +166,7 @@ def addDescription(test_description: str):
|
|
|
166
166
|
.add_description(test_description=str(test_description))
|
|
167
167
|
|
|
168
168
|
|
|
169
|
+
@Utils.deprecated('Use "addTags" instead.')
|
|
169
170
|
@adapter_logger
|
|
170
171
|
def addLabels(*test_labels: str):
|
|
171
172
|
if not hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_label'):
|
|
@@ -174,6 +175,16 @@ def addLabels(*test_labels: str):
|
|
|
174
175
|
for test_label in test_labels:
|
|
175
176
|
TmsPluginManager.get_plugin_manager().hook.add_label(test_label=str(test_label))
|
|
176
177
|
|
|
178
|
+
|
|
179
|
+
@adapter_logger
|
|
180
|
+
def addTags(*test_tags: str):
|
|
181
|
+
if not hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_tag'):
|
|
182
|
+
return
|
|
183
|
+
|
|
184
|
+
for test_tag in test_tags:
|
|
185
|
+
TmsPluginManager.get_plugin_manager().hook.add_tag(test_tag=str(test_tag))
|
|
186
|
+
|
|
187
|
+
|
|
177
188
|
@adapter_logger
|
|
178
189
|
def addParameter(name: str, value: str):
|
|
179
190
|
if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_parameter'):
|
|
@@ -26,6 +26,7 @@ class TestResult:
|
|
|
26
26
|
__result_links: List[Link] = []
|
|
27
27
|
__attachments: List[str] = []
|
|
28
28
|
__labels: List[str] = []
|
|
29
|
+
__tags: List[str] = []
|
|
29
30
|
__work_item_ids: List[str] = []
|
|
30
31
|
__parameters: dict = {}
|
|
31
32
|
__properties: dict = {}
|
|
@@ -218,12 +219,20 @@ class TestResult:
|
|
|
218
219
|
def set_labels(self, labels: list):
|
|
219
220
|
self.__labels = HtmlEscapeUtils.escape_html_in_object(labels)
|
|
220
221
|
|
|
221
|
-
return self
|
|
222
|
-
|
|
223
222
|
@adapter_logger
|
|
224
223
|
def get_labels(self) -> list:
|
|
225
224
|
return self.__labels
|
|
226
225
|
|
|
226
|
+
@adapter_logger
|
|
227
|
+
def set_tags(self, tags: list):
|
|
228
|
+
self.__tags = HtmlEscapeUtils.escape_html_in_object(tags)
|
|
229
|
+
|
|
230
|
+
return self
|
|
231
|
+
|
|
232
|
+
@adapter_logger
|
|
233
|
+
def get_tags(self) -> list:
|
|
234
|
+
return self.__tags
|
|
235
|
+
|
|
227
236
|
@adapter_logger
|
|
228
237
|
def set_work_item_ids(self, work_item_ids: list):
|
|
229
238
|
self.__work_item_ids = work_item_ids
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 3.12.
|
|
3
|
+
Version: 3.12.2
|
|
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.
|
|
20
|
+
Requires-Dist: testit-api-client==7.5.2
|
|
21
21
|
Dynamic: author
|
|
22
22
|
Dynamic: author-email
|
|
23
23
|
Dynamic: classifier
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/__init__.py
RENAMED
|
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-3.12.0 → testit_python_commons-3.12.2}/src/testit_python_commons/step.py
RENAMED
|
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-3.12.0 → testit_python_commons-3.12.2}/tests/test_html_escape_utils.py
RENAMED
|
File without changes
|