pytest-plugins 0.3.0__tar.gz → 0.3.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.3.0/pytest_plugins.egg-info → pytest_plugins-0.3.2}/PKG-INFO +14 -14
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/README.md +13 -13
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/verbose_param_ids.py +1 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2/pytest_plugins.egg-info}/PKG-INFO +14 -14
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/setup.py +1 -1
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/LICENSE +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/MANIFEST.in +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pyproject.toml +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/better_report.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/utils/helper.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins.egg-info/requires.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/requirements.txt +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/setup.cfg +0 -0
- {pytest_plugins-0.3.0 → pytest_plugins-0.3.2}/tests/test_dummy.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Home-page: https://github.com/aviz92/pytest-plugins
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -58,7 +58,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
58
58
|
<br> <br>
|
|
59
59
|
- ✅ **verbose-param-ids**: Enhance test IDs with parameter names for better clarity in pytest reports.
|
|
60
60
|
- flags:
|
|
61
|
-
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `
|
|
61
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `(param1: value1, param2: value2)` instead of `(param1-param2))`
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -70,20 +70,20 @@ pip install pytest-plugins
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
72
|
### 🔧 Usage
|
|
73
|
-
|
|
74
|
-
- pytest --better-report
|
|
75
|
-
- pytest --better-report --pr-number=123
|
|
76
|
-
- pytest-maxfail-streak
|
|
77
|
-
- pytest --maxfail-streak=3
|
|
78
|
-
- for using without a streak, use the built-in `--maxfail` option
|
|
79
|
-
- pytest-fail2skip
|
|
80
|
-
- pytest --fail2skip # must add `@pytest.mark.fail2skip` decorator to the test function
|
|
81
|
-
|
|
82
|
-
or use the `pytest.ini` configuration file to set default values for these plugins.
|
|
83
|
-
|
|
73
|
+
##### Add the following to your `pytest.ini` file to enable the plugin features:
|
|
84
74
|
```ini
|
|
85
75
|
[pytest]
|
|
86
|
-
addopts =
|
|
76
|
+
addopts =
|
|
77
|
+
--better-report
|
|
78
|
+
--pr-number=123
|
|
79
|
+
; --mr-number=123
|
|
80
|
+
--fail2skip
|
|
81
|
+
--maxfail-streak=3
|
|
82
|
+
--add-parameters
|
|
83
|
+
--pytest-command
|
|
84
|
+
--verbose-param-ids
|
|
85
|
+
--md-report
|
|
86
|
+
--traceback
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
---
|
|
@@ -27,7 +27,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
27
27
|
<br> <br>
|
|
28
28
|
- ✅ **verbose-param-ids**: Enhance test IDs with parameter names for better clarity in pytest reports.
|
|
29
29
|
- flags:
|
|
30
|
-
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `
|
|
30
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `(param1: value1, param2: value2)` instead of `(param1-param2))`
|
|
31
31
|
|
|
32
32
|
---
|
|
33
33
|
|
|
@@ -39,20 +39,20 @@ pip install pytest-plugins
|
|
|
39
39
|
---
|
|
40
40
|
|
|
41
41
|
### 🔧 Usage
|
|
42
|
-
|
|
43
|
-
- pytest --better-report
|
|
44
|
-
- pytest --better-report --pr-number=123
|
|
45
|
-
- pytest-maxfail-streak
|
|
46
|
-
- pytest --maxfail-streak=3
|
|
47
|
-
- for using without a streak, use the built-in `--maxfail` option
|
|
48
|
-
- pytest-fail2skip
|
|
49
|
-
- pytest --fail2skip # must add `@pytest.mark.fail2skip` decorator to the test function
|
|
50
|
-
|
|
51
|
-
or use the `pytest.ini` configuration file to set default values for these plugins.
|
|
52
|
-
|
|
42
|
+
##### Add the following to your `pytest.ini` file to enable the plugin features:
|
|
53
43
|
```ini
|
|
54
44
|
[pytest]
|
|
55
|
-
addopts =
|
|
45
|
+
addopts =
|
|
46
|
+
--better-report
|
|
47
|
+
--pr-number=123
|
|
48
|
+
; --mr-number=123
|
|
49
|
+
--fail2skip
|
|
50
|
+
--maxfail-streak=3
|
|
51
|
+
--add-parameters
|
|
52
|
+
--pytest-command
|
|
53
|
+
--verbose-param-ids
|
|
54
|
+
--md-report
|
|
55
|
+
--traceback
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
---
|
|
@@ -28,4 +28,5 @@ def pytest_collection_modifyitems(config: Config, items: list[Function]) -> None
|
|
|
28
28
|
|
|
29
29
|
for item in items:
|
|
30
30
|
test_full_name = get_test_full_name(item=item)
|
|
31
|
+
test_full_name = test_full_name.replace('{', '').replace('}', '')
|
|
31
32
|
item._nodeid = f"{item.fspath.basename}::{test_full_name}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.2
|
|
4
4
|
Summary: A Python package for managing pytest plugins.
|
|
5
5
|
Home-page: https://github.com/aviz92/pytest-plugins
|
|
6
6
|
Author: Avi Zaguri
|
|
@@ -58,7 +58,7 @@ generate `execution_results.json`, `test_results.json`, and `test_report`.md und
|
|
|
58
58
|
<br> <br>
|
|
59
59
|
- ✅ **verbose-param-ids**: Enhance test IDs with parameter names for better clarity in pytest reports.
|
|
60
60
|
- flags:
|
|
61
|
-
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `
|
|
61
|
+
- `--verbose-param-ids`: Include parameter names in pytest test IDs (e.g., `(param1: value1, param2: value2)` instead of `(param1-param2))`
|
|
62
62
|
|
|
63
63
|
---
|
|
64
64
|
|
|
@@ -70,20 +70,20 @@ pip install pytest-plugins
|
|
|
70
70
|
---
|
|
71
71
|
|
|
72
72
|
### 🔧 Usage
|
|
73
|
-
|
|
74
|
-
- pytest --better-report
|
|
75
|
-
- pytest --better-report --pr-number=123
|
|
76
|
-
- pytest-maxfail-streak
|
|
77
|
-
- pytest --maxfail-streak=3
|
|
78
|
-
- for using without a streak, use the built-in `--maxfail` option
|
|
79
|
-
- pytest-fail2skip
|
|
80
|
-
- pytest --fail2skip # must add `@pytest.mark.fail2skip` decorator to the test function
|
|
81
|
-
|
|
82
|
-
or use the `pytest.ini` configuration file to set default values for these plugins.
|
|
83
|
-
|
|
73
|
+
##### Add the following to your `pytest.ini` file to enable the plugin features:
|
|
84
74
|
```ini
|
|
85
75
|
[pytest]
|
|
86
|
-
addopts =
|
|
76
|
+
addopts =
|
|
77
|
+
--better-report
|
|
78
|
+
--pr-number=123
|
|
79
|
+
; --mr-number=123
|
|
80
|
+
--fail2skip
|
|
81
|
+
--maxfail-streak=3
|
|
82
|
+
--add-parameters
|
|
83
|
+
--pytest-command
|
|
84
|
+
--verbose-param-ids
|
|
85
|
+
--md-report
|
|
86
|
+
--traceback
|
|
87
87
|
```
|
|
88
88
|
|
|
89
89
|
---
|
|
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
|