pytest-plugins 2.0.1__tar.gz → 2.0.3__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-2.0.1/pytest_plugins.egg-info → pytest_plugins-2.0.3}/PKG-INFO +10 -1
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/README.md +9 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pyproject.toml +1 -1
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/better_report.py +7 -4
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3/pytest_plugins.egg-info}/PKG-INFO +10 -1
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/LICENSE +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/MANIFEST.in +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/utils/helper.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins/verbose_param_ids.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins.egg-info/requires.txt +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/setup.cfg +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/tests/test_dummy.py +0 -0
- {pytest_plugins-2.0.1 → pytest_plugins-2.0.3}/tests/test_dummy_regular.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Author: Avi Zaguri
|
|
6
6
|
License: MIT
|
|
@@ -29,6 +29,15 @@ Requires-Dist: setuptools>=80.9.0
|
|
|
29
29
|
Requires-Dist: wheel>=0.45.1
|
|
30
30
|
Dynamic: license-file
|
|
31
31
|
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+

|
|
36
|
+

|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
32
41
|
# pytest-plugins
|
|
33
42
|
An advanced pytest plugin designed for Python projects, offering robust features and utilities to enhance the testing workflow. <br>
|
|
34
43
|
It includes improved `conftest.py` fixtures, automated test result reporting, detailed logging, and seamless integration with external tools for a streamlined and efficient testing experience.
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+

|
|
2
|
+

|
|
3
|
+

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
1
10
|
# pytest-plugins
|
|
2
11
|
An advanced pytest plugin designed for Python projects, offering robust features and utilities to enhance the testing workflow. <br>
|
|
3
12
|
It includes improved `conftest.py` fixtures, automated test result reporting, detailed logging, and seamless integration with external tools for a streamlined and efficient testing experience.
|
|
@@ -100,11 +100,13 @@ def pytest_configure(config: Config) -> None:
|
|
|
100
100
|
|
|
101
101
|
config._better_report_enabled = config.getoption("--better-report") # pylint: disable=W0212
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
results_output_dir = Path("results_output")
|
|
104
|
+
project_root = get_project_root()
|
|
104
105
|
if _output_dir := config.getoption("--output-dir"):
|
|
105
|
-
config.option.output_dir =
|
|
106
|
+
config.option.output_dir = project_root/_output_dir/results_output_dir if project_root else results_output_dir
|
|
106
107
|
else:
|
|
107
|
-
config.option.output_dir =
|
|
108
|
+
config.option.output_dir = project_root / results_output_dir if project_root else results_output_dir
|
|
109
|
+
logger.info(f"Better report plugin enabled. Output directory set to: {config.option.output_dir}")
|
|
108
110
|
|
|
109
111
|
|
|
110
112
|
def pytest_sessionstart(session: Session) -> None:
|
|
@@ -226,7 +228,8 @@ def session_setup_teardown(request: FixtureRequest) -> Generator[None, Any, None
|
|
|
226
228
|
|
|
227
229
|
save_as_json(path=output_dir / "execution_results.json", data=execution_results, default=default_serialize)
|
|
228
230
|
save_as_json(path=output_dir / "test_results.json", data=test_results, default=default_serialize)
|
|
229
|
-
logger.info("Better report: Execution results saved")
|
|
231
|
+
logger.info(f"Better report: Execution results saved to {output_dir / 'execution_results.json'}")
|
|
232
|
+
logger.info(f"Better report: Test results saved to {output_dir / 'test_results.json'}'")
|
|
230
233
|
|
|
231
234
|
|
|
232
235
|
@pytest.hookimpl(hookwrapper=True, tryfirst=True)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.3
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Author: Avi Zaguri
|
|
6
6
|
License: MIT
|
|
@@ -29,6 +29,15 @@ Requires-Dist: setuptools>=80.9.0
|
|
|
29
29
|
Requires-Dist: wheel>=0.45.1
|
|
30
30
|
Dynamic: license-file
|
|
31
31
|
|
|
32
|
+

|
|
33
|
+

|
|
34
|
+

|
|
35
|
+

|
|
36
|
+

|
|
37
|
+

|
|
38
|
+
|
|
39
|
+
---
|
|
40
|
+
|
|
32
41
|
# pytest-plugins
|
|
33
42
|
An advanced pytest plugin designed for Python projects, offering robust features and utilities to enhance the testing workflow. <br>
|
|
34
43
|
It includes improved `conftest.py` fixtures, automated test result reporting, detailed logging, and seamless integration with external tools for a streamlined and efficient testing experience.
|
|
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
|