testit-python-commons 3.5.4__tar.gz → 3.6.0.post530__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. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/PKG-INFO +2 -2
  2. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/setup.py +2 -2
  3. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit.py +18 -0
  4. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/decorators.py +2 -0
  5. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/dynamic_methods.py +66 -0
  6. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
  7. testit_python_commons-3.6.0.post530/src/testit_python_commons.egg-info/requires.txt +2 -0
  8. testit_python_commons-3.5.4/src/testit_python_commons.egg-info/requires.txt +0 -2
  9. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/README.md +0 -0
  10. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/setup.cfg +0 -0
  11. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/__init__.py +0 -0
  12. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/app_properties.py +0 -0
  13. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/client/__init__.py +0 -0
  14. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/client/api_client.py +0 -0
  15. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/client/client_configuration.py +0 -0
  16. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/client/converter.py +0 -0
  17. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/__init__.py +0 -0
  18. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/adapter_mode.py +0 -0
  19. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/fixture.py +0 -0
  20. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/link.py +0 -0
  21. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/link_type.py +0 -0
  22. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/outcome_type.py +0 -0
  23. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/step_result.py +0 -0
  24. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/test_result.py +0 -0
  25. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  26. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/__init__.py +0 -0
  27. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/adapter_manager.py +0 -0
  28. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  29. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/fixture_manager.py +0 -0
  30. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/fixture_storage.py +0 -0
  31. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/logger.py +0 -0
  32. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/plugin_manager.py +0 -0
  33. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/retry.py +0 -0
  34. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/step_manager.py +0 -0
  35. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/step_result_storage.py +0 -0
  36. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/services/utils.py +0 -0
  37. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons/step.py +0 -0
  38. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  39. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  40. {testit_python_commons-3.5.4 → testit_python_commons-3.6.0.post530}/src/testit_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.5.4
3
+ Version: 3.6.0.post530
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==6.0.0
19
+ Requires-Dist: testit-api-client==6.0.1.post530
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "3.5.4"
3
+ VERSION = "3.6.0.post530"
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', 'testit-api-client==6.0.0']
28
+ install_requires=['pluggy', 'testit-api-client==6.0.1.post530']
29
29
  )
@@ -17,6 +17,15 @@ from testit_python_commons.dynamic_methods import (
17
17
  addLink,
18
18
  addLinks,
19
19
  addMessage,
20
+ addWorkItemIds,
21
+ addDisplayName,
22
+ addNameSpace,
23
+ addClassName,
24
+ addExternalId,
25
+ addTitle,
26
+ addDescription,
27
+ addLabels,
28
+ addParameter,
20
29
  attachments,
21
30
  message
22
31
  )
@@ -42,6 +51,15 @@ __all__ = [
42
51
  'addAttachments',
43
52
  'message',
44
53
  'addMessage',
54
+ 'addWorkItemIds',
55
+ 'addDisplayName',
56
+ 'addNameSpace',
57
+ 'addClassName',
58
+ 'addExternalId',
59
+ 'addTitle',
60
+ 'addDescription',
61
+ 'addLabels',
62
+ 'addParameter',
45
63
  'step',
46
64
  'LinkType'
47
65
  ]
@@ -68,6 +68,7 @@ def displayName(test_displayname: str): # noqa: N802
68
68
  return outer
69
69
 
70
70
 
71
+ @adapter_logger
71
72
  def nameSpace(test_namespace: str): # noqa: N802
72
73
  def outer(function):
73
74
  function.test_namespace = test_namespace
@@ -76,6 +77,7 @@ def nameSpace(test_namespace: str): # noqa: N802
76
77
  return outer
77
78
 
78
79
 
80
+ @adapter_logger
79
81
  def className(test_classname: str): # noqa: N802
80
82
  def outer(function):
81
83
  function.test_classname = test_classname
@@ -113,3 +113,69 @@ def add_attachments_to_test(data, is_text: bool = False, name: str = None):
113
113
  .add_attachments(attach_paths=data)
114
114
  else:
115
115
  logging.warning(f'({data}) is not path!')
116
+
117
+
118
+ @adapter_logger
119
+ def addWorkItemIds(*test_work_item_ids: int or str): # noqa: N802
120
+ if not hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_work_item_id'):
121
+ return
122
+
123
+ for test_work_item_id in test_work_item_ids:
124
+ TmsPluginManager.get_plugin_manager().hook.add_work_item_id(test_work_item_id=str(test_work_item_id))
125
+
126
+
127
+ @adapter_logger
128
+ def addDisplayName(test_display_name: str): # noqa: N802
129
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_display_name'):
130
+ TmsPluginManager.get_plugin_manager().hook \
131
+ .add_display_name(test_display_name=str(test_display_name))
132
+
133
+
134
+ @adapter_logger
135
+ def addNameSpace(test_namespace: str): # noqa: N802
136
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_namespace'):
137
+ TmsPluginManager.get_plugin_manager().hook \
138
+ .add_namespace(test_namespace=str(test_namespace))
139
+
140
+
141
+ @adapter_logger
142
+ def addClassName(test_classname: str): # noqa: N802
143
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_classname'):
144
+ TmsPluginManager.get_plugin_manager().hook \
145
+ .add_classname(test_classname=str(test_classname))
146
+
147
+
148
+ @adapter_logger
149
+ def addExternalId(test_external_id: str): # noqa: N802
150
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_external_id'):
151
+ TmsPluginManager.get_plugin_manager().hook \
152
+ .add_external_id(test_external_id=str(test_external_id))
153
+
154
+
155
+ @adapter_logger
156
+ def addTitle(test_title: str):
157
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_title'):
158
+ TmsPluginManager.get_plugin_manager().hook \
159
+ .add_title(test_title=str(test_title))
160
+
161
+
162
+ @adapter_logger
163
+ def addDescription(test_description: str):
164
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_description'):
165
+ TmsPluginManager.get_plugin_manager().hook \
166
+ .add_description(test_description=str(test_description))
167
+
168
+
169
+ @adapter_logger
170
+ def addLabels(*test_labels: str):
171
+ if not hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_label'):
172
+ return
173
+
174
+ for test_label in test_labels:
175
+ TmsPluginManager.get_plugin_manager().hook.add_label(test_label=str(test_label))
176
+
177
+ @adapter_logger
178
+ def addParameter(name: str, value: str):
179
+ if hasattr(TmsPluginManager.get_plugin_manager().hook, 'add_parameter'):
180
+ TmsPluginManager.get_plugin_manager().hook \
181
+ .add_parameter(name=str(name), value=str(value))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.5.4
3
+ Version: 3.6.0.post530
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==6.0.0
19
+ Requires-Dist: testit-api-client==6.0.1.post530
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -0,0 +1,2 @@
1
+ pluggy
2
+ testit-api-client==6.0.1.post530
@@ -1,2 +0,0 @@
1
- pluggy
2
- testit-api-client==6.0.0