testit-adapter-pytest 3.2.5__tar.gz → 3.2.6__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 (21) hide show
  1. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/PKG-INFO +2 -2
  2. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/setup.py +2 -2
  3. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/utils.py +14 -9
  4. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest.egg-info/PKG-INFO +2 -2
  5. testit_adapter_pytest-3.2.6/src/testit_adapter_pytest.egg-info/requires.txt +4 -0
  6. testit_adapter_pytest-3.2.5/src/testit_adapter_pytest.egg-info/requires.txt +0 -4
  7. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/README.md +0 -0
  8. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/setup.cfg +0 -0
  9. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/__init__.py +0 -0
  10. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/fixture_context.py +0 -0
  11. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/fixture_manager.py +0 -0
  12. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/fixture_storage.py +0 -0
  13. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/listener.py +0 -0
  14. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/models/__init__.py +0 -0
  15. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/models/executable_test.py +0 -0
  16. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/models/fixture.py +0 -0
  17. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest/plugin.py +0 -0
  18. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest.egg-info/SOURCES.txt +0 -0
  19. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest.egg-info/dependency_links.txt +0 -0
  20. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest.egg-info/entry_points.txt +0 -0
  21. {testit_adapter_pytest-3.2.5 → testit_adapter_pytest-3.2.6}/src/testit_adapter_pytest.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-pytest
3
- Version: 3.2.5
3
+ Version: 3.2.6
4
4
  Summary: Pytest adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Description-Content-Type: text/markdown
16
16
  Requires-Dist: pytest
17
17
  Requires-Dist: pytest-xdist
18
18
  Requires-Dist: attrs
19
- Requires-Dist: testit-python-commons==3.2.5
19
+ Requires-Dist: testit-python-commons==3.2.6
20
20
 
21
21
  # Test IT TMS adapter for Pytest
22
22
 
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-adapter-pytest',
5
- version='3.2.5',
5
+ version='3.2.6',
6
6
  description='Pytest adapter for Test IT',
7
7
  long_description=open('README.md', "r").read(),
8
8
  long_description_content_type="text/markdown",
@@ -21,6 +21,6 @@ setup(
21
21
  py_modules=['testit_adapter_pytest'],
22
22
  packages=find_packages(where='src'),
23
23
  package_dir={'': 'src'},
24
- install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==3.2.5'],
24
+ install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==3.2.6'],
25
25
  entry_points={'pytest11': ['testit_adapter_pytest = testit_adapter_pytest.plugin']}
26
26
  )
@@ -178,9 +178,9 @@ def __get_labels_from(item):
178
178
  get_all_parameters(item))
179
179
 
180
180
  if isinstance(result, __ARRAY_TYPES):
181
- for label in result:
181
+ for l in result:
182
182
  labels.append({
183
- 'name': str(label)
183
+ 'name': str(l)
184
184
  })
185
185
  else:
186
186
  labels.append({
@@ -191,19 +191,24 @@ def __get_labels_from(item):
191
191
 
192
192
 
193
193
  def __get_work_item_ids_from(item):
194
- test_workitems_id = __search_attribute(item, 'test_workitems_id')
194
+ test_workitem_ids = __search_attribute(item, 'test_workitems_id')
195
195
 
196
- if not test_workitems_id:
196
+ if not test_workitem_ids:
197
197
  return []
198
198
 
199
- all_parameters = get_all_parameters(item)
199
+ workitem_ids = []
200
200
 
201
- if not all_parameters:
202
- return test_workitems_id
201
+ for workitem_id in test_workitem_ids:
202
+ result = collect_parameters_in_mass_attribute(
203
+ workitem_id,
204
+ get_all_parameters(item))
203
205
 
204
- result = collect_parameters_in_mass_attribute(test_workitems_id[0], all_parameters)
206
+ if isinstance(result, __ARRAY_TYPES):
207
+ workitem_ids += list(map(str, result))
208
+ else:
209
+ workitem_ids.append(str(result))
205
210
 
206
- return map(str, result) if isinstance(result, __ARRAY_TYPES) else [str(result)]
211
+ return workitem_ids
207
212
 
208
213
 
209
214
  def collect_parameters_in_string_attribute(attribute, all_parameters):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-pytest
3
- Version: 3.2.5
3
+ Version: 3.2.6
4
4
  Summary: Pytest adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Description-Content-Type: text/markdown
16
16
  Requires-Dist: pytest
17
17
  Requires-Dist: pytest-xdist
18
18
  Requires-Dist: attrs
19
- Requires-Dist: testit-python-commons==3.2.5
19
+ Requires-Dist: testit-python-commons==3.2.6
20
20
 
21
21
  # Test IT TMS adapter for Pytest
22
22
 
@@ -0,0 +1,4 @@
1
+ pytest
2
+ pytest-xdist
3
+ attrs
4
+ testit-python-commons==3.2.6
@@ -1,4 +0,0 @@
1
- pytest
2
- pytest-xdist
3
- attrs
4
- testit-python-commons==3.2.5