testit-adapter-pytest 4.2.9__tar.gz → 4.2.10__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-4.2.9 → testit_adapter_pytest-4.2.10}/PKG-INFO +2 -2
  2. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/setup.py +1 -1
  3. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/listener.py +5 -8
  4. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest.egg-info/PKG-INFO +2 -2
  5. testit_adapter_pytest-4.2.10/src/testit_adapter_pytest.egg-info/requires.txt +4 -0
  6. testit_adapter_pytest-4.2.9/src/testit_adapter_pytest.egg-info/requires.txt +0 -4
  7. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/README.md +0 -0
  8. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/setup.cfg +0 -0
  9. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/__init__.py +0 -0
  10. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/fixture_context.py +0 -0
  11. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/models/__init__.py +0 -0
  12. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/models/executable_test.py +0 -0
  13. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/plugin.py +0 -0
  14. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest/utils.py +0 -0
  15. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest.egg-info/SOURCES.txt +0 -0
  16. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest.egg-info/dependency_links.txt +0 -0
  17. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest.egg-info/entry_points.txt +0 -0
  18. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/src/testit_adapter_pytest.egg-info/top_level.txt +0 -0
  19. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/tests/test_addoption.py +0 -0
  20. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/tests/test_listener.py +0 -0
  21. {testit_adapter_pytest-4.2.9 → testit_adapter_pytest-4.2.10}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-pytest
3
- Version: 4.2.9
3
+ Version: 4.2.10
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==4.2.9
19
+ Requires-Dist: testit-python-commons==4.2.10
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 = "4.2.9"
3
+ VERSION = "4.2.10"
4
4
 
5
5
  setup(
6
6
  name='testit-adapter-pytest',
@@ -243,26 +243,23 @@ class TmsListener(object):
243
243
  if report.when == 'setup':
244
244
  self.__executable_test.outcome = report.outcome
245
245
  self.__executable_test.status_type = STATUS_TYPE.get(report.outcome, None)
246
- if report.longreprtext:
247
- self.__executable_test.message = report.longreprtext
248
246
 
249
247
  if report.when == 'call':
250
248
  self.__executable_test.outcome = report.outcome
251
249
  self.__executable_test.status_type = STATUS_TYPE.get(report.outcome, None)
252
250
 
251
+ is_xfailed = hasattr(report, 'wasxfail') and not report.passed
252
+
253
253
  if report.failed or report.outcome == 'rerun':
254
254
  self.__executable_test.outcome = 'failed'
255
255
  self.__executable_test.status_type = STATUS_TYPE.get('failed', None)
256
256
 
257
- if report.longreprtext:
258
- self.__executable_test.traces = report.longreprtext
259
-
260
- if hasattr(report, 'wasxfail') and not report.passed:
257
+ if is_xfailed:
261
258
  self.__executable_test.outcome = 'xfailed'
262
259
  self.__executable_test.status_type = STATUS_TYPE.get('xfailed', None)
263
260
 
264
- if report.longreprtext:
265
- self.__executable_test.traces = report.longreprtext
261
+ if report.failed or report.outcome == 'rerun' or is_xfailed:
262
+ self.__executable_test.traces = getattr(report, 'longreprtext', None)
266
263
 
267
264
  self.__executable_test.duration += report.duration * 1000
268
265
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-adapter-pytest
3
- Version: 4.2.9
3
+ Version: 4.2.10
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==4.2.9
19
+ Requires-Dist: testit-python-commons==4.2.10
20
20
  Dynamic: author
21
21
  Dynamic: author-email
22
22
  Dynamic: classifier
@@ -0,0 +1,4 @@
1
+ pytest
2
+ pytest-xdist
3
+ attrs
4
+ testit-python-commons==4.2.10
@@ -1,4 +0,0 @@
1
- pytest
2
- pytest-xdist
3
- attrs
4
- testit-python-commons==4.2.9