pytest-plugins 0.4.1__tar.gz → 0.4.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_plugins-0.4.1/pytest_plugins.egg-info → pytest_plugins-0.4.2}/PKG-INFO +1 -1
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/better_report.py +9 -4
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2/pytest_plugins.egg-info}/PKG-INFO +1 -1
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/setup.py +1 -1
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/LICENSE +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/MANIFEST.in +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/README.md +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pyproject.toml +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/utils/helper.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins/verbose_param_ids.py +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins.egg-info/requires.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/requirements.txt +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/setup.cfg +0 -0
- {pytest_plugins-0.4.1 → pytest_plugins-0.4.2}/tests/test_dummy.py +0 -0
|
@@ -197,8 +197,9 @@ def session_setup_teardown(request: FixtureRequest) -> Generator[None, Any, None
|
|
|
197
197
|
|
|
198
198
|
# update execution status
|
|
199
199
|
exec_info.execution_status = (
|
|
200
|
-
ExecutionStatus.PASSED if all(
|
|
201
|
-
|
|
200
|
+
ExecutionStatus.PASSED if all(
|
|
201
|
+
t.test_status in [ExecutionStatus.PASSED, ExecutionStatus.SKIPPED] for t in test_results.values()
|
|
202
|
+
) else ExecutionStatus.FAILED
|
|
202
203
|
)
|
|
203
204
|
|
|
204
205
|
exec_info.test_list = list(test_results.keys())
|
|
@@ -213,18 +214,22 @@ def session_setup_teardown(request: FixtureRequest) -> Generator[None, Any, None
|
|
|
213
214
|
|
|
214
215
|
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
|
|
215
216
|
def pytest_runtest_makereport(item: Function, call: Any) -> Generator[None, Any, None]:
|
|
217
|
+
test_full_name = get_test_full_name(item=item)
|
|
218
|
+
test_item = test_results.get(test_full_name)
|
|
219
|
+
|
|
216
220
|
if call.when == "setup":
|
|
217
221
|
test_full_name = get_test_full_name(item=item)
|
|
218
222
|
test_results[test_full_name].test_start_time = datetime.now(timezone.utc).isoformat()
|
|
219
223
|
|
|
224
|
+
if call.excinfo and call.excinfo.typename == ExecutionStatus.SKIPPED.value.title():
|
|
225
|
+
test_item.test_status = ExecutionStatus.SKIPPED
|
|
226
|
+
|
|
220
227
|
outcome = yield
|
|
221
228
|
report = outcome.get_result()
|
|
222
229
|
|
|
223
230
|
if report.when != "call" or not getattr(item.config, '_better_report_enabled', None):
|
|
224
231
|
return
|
|
225
232
|
|
|
226
|
-
test_full_name = get_test_full_name(item=item)
|
|
227
|
-
test_item = test_results.get(test_full_name)
|
|
228
233
|
if not test_item:
|
|
229
234
|
logger.warning(f"Test {test_full_name} missing in test_results during makereport")
|
|
230
235
|
return
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|