testit-adapter-pytest 2.8.3__tar.gz → 3.0.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 (20) hide show
  1. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/PKG-INFO +2 -2
  2. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/setup.py +2 -2
  3. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/listener.py +1 -14
  4. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/utils.py +1 -1
  5. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/PKG-INFO +2 -2
  6. testit_adapter_pytest-3.0.1/src/testit_adapter_pytest.egg-info/requires.txt +4 -0
  7. testit-adapter-pytest-2.8.3/src/testit_adapter_pytest.egg-info/requires.txt +0 -4
  8. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/README.md +0 -0
  9. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/setup.cfg +0 -0
  10. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/__init__.py +0 -0
  11. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_context.py +0 -0
  12. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_manager.py +0 -0
  13. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/fixture_storage.py +0 -0
  14. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/models/__init__.py +0 -0
  15. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/models/fixture.py +0 -0
  16. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest/plugin.py +0 -0
  17. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/SOURCES.txt +0 -0
  18. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/dependency_links.txt +0 -0
  19. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/src/testit_adapter_pytest.egg-info/entry_points.txt +0 -0
  20. {testit-adapter-pytest-2.8.3 → testit_adapter_pytest-3.0.1}/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: 2.8.3
3
+ Version: 3.0.1
4
4
  Summary: Pytest adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
  Requires-Dist: pytest
19
19
  Requires-Dist: pytest-xdist
20
20
  Requires-Dist: attrs
21
- Requires-Dist: testit-python-commons==2.8.3
21
+ Requires-Dist: testit-python-commons==3.0.1
22
22
 
23
23
  # Test IT TMS adapter for Pytest
24
24
 
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-adapter-pytest',
5
- version='2.8.3',
5
+ version='3.0.1',
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",
@@ -23,6 +23,6 @@ setup(
23
23
  py_modules=['testit_adapter_pytest'],
24
24
  packages=find_packages(where='src'),
25
25
  package_dir={'': 'src'},
26
- install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==2.8.3'],
26
+ install_requires=['pytest', 'pytest-xdist', 'attrs', 'testit-python-commons==3.0.1'],
27
27
  entry_points={'pytest11': ['testit_adapter_pytest = testit_adapter_pytest.plugin']}
28
28
  )
@@ -131,7 +131,7 @@ class TmsListener(object):
131
131
  if hasattr(item.function, 'test_external_id'):
132
132
  item.test_external_id = item.function.test_external_id
133
133
  else:
134
- item.test_external_id = utils.get_hash(item.nodeid + item.function.__name__)
134
+ item.test_external_id = utils.get_hash(item.parent.nodeid + item.function.__name__)
135
135
 
136
136
  if item.own_markers:
137
137
  for mark in item.own_markers:
@@ -165,19 +165,6 @@ class TmsListener(object):
165
165
 
166
166
  @pytest.hookimpl(tryfirst=True)
167
167
  def pytest_runtest_protocol(self, item):
168
- if not hasattr(item.function, 'test_external_id'):
169
- item.test_external_id = utils.get_hash(item.nodeid + item.function.__name__)
170
-
171
- if not hasattr(item.function, 'test_displayname'):
172
- item.test_displayname = item.function.__doc__ if \
173
- item.function.__doc__ else item.function.__name__
174
- else:
175
- params = utils.get_all_parameters(item)
176
-
177
- item.test_displayname = utils.collect_parameters_in_string_attribute(
178
- item.function.test_displayname,
179
- params)
180
-
181
168
  self.__executable_test = utils.form_test(item)
182
169
 
183
170
  @pytest.hookimpl(hookwrapper=True)
@@ -75,7 +75,7 @@ def __get_external_id_from(item):
75
75
  external_id = __search_attribute(item, 'test_external_id')
76
76
 
77
77
  if not external_id:
78
- return get_hash(item.nodeid + item.function.__name__)
78
+ return get_hash(item.parent.nodeid + item.function.__name__)
79
79
 
80
80
  return collect_parameters_in_string_attribute(external_id, get_all_parameters(item))
81
81
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-adapter-pytest
3
- Version: 2.8.3
3
+ Version: 3.0.1
4
4
  Summary: Pytest adapter for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -18,7 +18,7 @@ Description-Content-Type: text/markdown
18
18
  Requires-Dist: pytest
19
19
  Requires-Dist: pytest-xdist
20
20
  Requires-Dist: attrs
21
- Requires-Dist: testit-python-commons==2.8.3
21
+ Requires-Dist: testit-python-commons==3.0.1
22
22
 
23
23
  # Test IT TMS adapter for Pytest
24
24
 
@@ -0,0 +1,4 @@
1
+ pytest
2
+ pytest-xdist
3
+ attrs
4
+ testit-python-commons==3.0.1
@@ -1,4 +0,0 @@
1
- pytest
2
- pytest-xdist
3
- attrs
4
- testit-python-commons==2.8.3