testit-python-commons 3.12.0__tar.gz → 3.12.1__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 (50) hide show
  1. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/PKG-INFO +1 -1
  2. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/setup.py +1 -1
  3. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/converter.py +6 -0
  4. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/decorators.py +10 -0
  5. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/dynamic_methods.py +11 -0
  6. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/test_result.py +11 -2
  7. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
  8. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/README.md +0 -0
  9. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/setup.cfg +0 -0
  10. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit.py +0 -0
  11. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/__init__.py +0 -0
  12. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/app_properties.py +0 -0
  13. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/__init__.py +0 -0
  14. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/api_client.py +0 -0
  15. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/client_configuration.py +0 -0
  16. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/helpers/__init__.py +0 -0
  17. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
  18. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
  19. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/models/__init__.py +0 -0
  20. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
  21. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
  22. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/__init__.py +0 -0
  23. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/adapter_mode.py +0 -0
  24. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/fixture.py +0 -0
  25. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/link.py +0 -0
  26. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/link_type.py +0 -0
  27. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/outcome_type.py +0 -0
  28. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/step_result.py +0 -0
  29. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  30. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/__init__.py +0 -0
  31. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/adapter_manager.py +0 -0
  32. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  33. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/fixture_manager.py +0 -0
  34. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/fixture_storage.py +0 -0
  35. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/logger.py +0 -0
  36. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/plugin_manager.py +0 -0
  37. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/retry.py +0 -0
  38. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/step_manager.py +0 -0
  39. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/step_result_storage.py +0 -0
  40. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/services/utils.py +0 -0
  41. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/step.py +0 -0
  42. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/utils/__init__.py +0 -0
  43. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
  44. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  45. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  46. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons.egg-info/requires.txt +0 -0
  47. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/src/testit_python_commons.egg-info/top_level.txt +0 -0
  48. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/tests/test_app_properties.py +0 -0
  49. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/tests/test_dynamic_methods.py +0 -0
  50. {testit_python_commons-3.12.0 → testit_python_commons-3.12.1}/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.0
3
+ Version: 3.12.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "3.12.0"
3
+ VERSION = "3.12.1"
4
4
 
5
5
  setup(
6
6
  name='testit-python-commons',
@@ -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.0
3
+ Version: 3.12.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team