testit-adapter-robotframework 5.1.6__tar.gz → 5.2.0__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 (16) hide show
  1. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/PKG-INFO +2 -2
  2. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/setup.py +1 -1
  3. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework/models.py +3 -0
  4. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework/utils.py +1 -0
  5. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework.egg-info/PKG-INFO +2 -2
  6. testit_adapter_robotframework-5.2.0/src/testit_adapter_robotframework.egg-info/requires.txt +3 -0
  7. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/tests/test_listeners.py +7 -1
  8. testit_adapter_robotframework-5.1.6/src/testit_adapter_robotframework.egg-info/requires.txt +0 -3
  9. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/README.md +0 -0
  10. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/setup.cfg +0 -0
  11. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework/TMSLibrary.py +0 -0
  12. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework/__init__.py +0 -0
  13. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework/listeners.py +0 -0
  14. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework.egg-info/SOURCES.txt +0 -0
  15. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework.egg-info/dependency_links.txt +0 -0
  16. {testit_adapter_robotframework-5.1.6 → testit_adapter_robotframework-5.2.0}/src/testit_adapter_robotframework.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-robotframework
3
- Version: 5.1.6
3
+ Version: 5.2.0
4
4
  Summary: Robot Framework adapter 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: attrs
19
19
  Requires-Dist: robotframework
20
- Requires-Dist: testit-python-commons==5.1.6
20
+ Requires-Dist: testit-python-commons==5.2.0
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 = "5.1.6"
3
+ VERSION = "5.2.0"
4
4
 
5
5
  setup(
6
6
  name='testit-adapter-robotframework',
@@ -106,6 +106,7 @@ class Autotest(Default):
106
106
  links = attrib(default=Factory(list))
107
107
  labels = attrib(default=Factory(list))
108
108
  tags = attrib(default=Factory(list))
109
+ layer = attrib(default=None)
109
110
  workItemsID = attrib(default=Factory(list)) # noqa: N815
110
111
  message = attrib(default="")
111
112
  started_on = attrib(default=None)
@@ -174,6 +175,8 @@ class Autotest(Default):
174
175
  self.namespace = _clean_value(value)
175
176
  elif attr == 'classname':
176
177
  self.classname = _clean_value(value)
178
+ elif attr == 'layer':
179
+ self.layer = _clean_value(value)
177
180
  else:
178
181
  logger.error(f"[TestIt] Unknown attribute: {attr}")
179
182
  if not self.externalID:
@@ -39,6 +39,7 @@ def convert_executable_test_to_test_result_model(executable_test: dict) -> TestR
39
39
  .set_result_links(executable_test['resultLinks'])\
40
40
  .set_labels(executable_test['labels']) \
41
41
  .set_tags(executable_test['tags'])\
42
+ .set_layer(executable_test.get('layer'))\
42
43
  .set_work_item_ids(executable_test['workItemsID'])\
43
44
  .set_message(executable_test['message'])\
44
45
  .set_external_key(executable_test['externalKey'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-robotframework
3
- Version: 5.1.6
3
+ Version: 5.2.0
4
4
  Summary: Robot Framework adapter 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: attrs
19
19
  Requires-Dist: robotframework
20
- Requires-Dist: testit-python-commons==5.1.6
20
+ Requires-Dist: testit-python-commons==5.2.0
21
21
  Dynamic: author
22
22
  Dynamic: author-email
23
23
  Dynamic: classifier
@@ -0,0 +1,3 @@
1
+ attrs
2
+ robotframework
3
+ testit-python-commons==5.2.0
@@ -85,4 +85,10 @@ class TestAutotestTagParsing:
85
85
  ]))
86
86
 
87
87
  assert autotest.autoTestName == "DisplayName"
88
- assert autotest.title == "CardTitle"
88
+ assert autotest.title == "CardTitle"
89
+
90
+ def test_layer_tag_is_parsed(self):
91
+ autotest = Autotest(autoTestName="Initial")
92
+ autotest.add_attributes(self._build_attrs(["testit.layer:API"]))
93
+
94
+ assert autotest.layer == "API"
@@ -1,3 +0,0 @@
1
- attrs
2
- robotframework
3
- testit-python-commons==5.1.6