pytest-json-ctrf 0.5.1__tar.gz → 0.5.2__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.
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/PKG-INFO +1 -1
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/TestObject.py +1 -4
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pyproject.toml +1 -1
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/PKG-INFO +1 -1
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/README.md +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/BaseMetadataReport.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/CommonTestReportPlugin.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/Report.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/__init__.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/ctrf/main.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/SOURCES.txt +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/dependency_links.txt +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/entry_points.txt +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/requires.txt +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/top_level.txt +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/setup.cfg +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/tests/test_example.py +0 -0
- {pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/tests/test_plugin.py +0 -0
|
@@ -16,7 +16,6 @@ class TestObject:
|
|
|
16
16
|
name: str
|
|
17
17
|
_status: TestStatus
|
|
18
18
|
raw_status: Optional[str]
|
|
19
|
-
duration: int = 0
|
|
20
19
|
start: int
|
|
21
20
|
stop: int
|
|
22
21
|
retries: int
|
|
@@ -33,7 +32,6 @@ class TestObject:
|
|
|
33
32
|
self._status = TestStatus.PENDING
|
|
34
33
|
self._status = self.set_status(report)
|
|
35
34
|
self.raw_status = None
|
|
36
|
-
self.duration = 0
|
|
37
35
|
self.start = 0
|
|
38
36
|
self.stop = 0
|
|
39
37
|
self.retries = 0
|
|
@@ -83,7 +81,6 @@ class TestObject:
|
|
|
83
81
|
self.start = int(report.start * 1000)
|
|
84
82
|
if report.when == "teardown" and self.stop == 0:
|
|
85
83
|
self.stop = int(report.stop * 1000)
|
|
86
|
-
self.duration = self.stop - self.start
|
|
87
84
|
if report.longrepr and len(report.longreprtext) > 0:
|
|
88
85
|
self.trace = report.longreprtext
|
|
89
86
|
if hasattr(report, '_ctrf_metadata'):
|
|
@@ -95,7 +92,7 @@ class TestObject:
|
|
|
95
92
|
'name': self.name,
|
|
96
93
|
'status': self._status.value,
|
|
97
94
|
'raw_status': self.raw_status,
|
|
98
|
-
'duration': self.
|
|
95
|
+
'duration': self.stop - self.start,
|
|
99
96
|
'start': self.start,
|
|
100
97
|
'stop': self.stop,
|
|
101
98
|
'retries': None if self.retries == 1 else self.retries,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pytest_json_ctrf-0.5.1 → pytest_json_ctrf-0.5.2}/pytest_json_ctrf.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|