pytest-plugin-utils 0.1.1__tar.gz → 0.2.0__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_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/PKG-INFO +1 -1
- {pytest_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/pyproject.toml +2 -2
- {pytest_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/pytest_plugin_utils/config.py +14 -2
- {pytest_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/README.md +0 -0
- {pytest_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/pytest_plugin_utils/__init__.py +0 -0
- {pytest_plugin_utils-0.1.1 → pytest_plugin_utils-0.2.0}/pytest_plugin_utils/artifacts.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytest-plugin-utils"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.2.0"
|
|
4
4
|
description = "Reusable configuration and artifact utilities for building pytest plugins"
|
|
5
5
|
keywords = ["pytest", "plugin", "testing", "utilities"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -30,7 +30,7 @@ dev = [
|
|
|
30
30
|
]
|
|
31
31
|
|
|
32
32
|
[tool.pyright]
|
|
33
|
-
exclude = ["examples/", "playground/", "tmp/", ".venv/"
|
|
33
|
+
exclude = ["examples/", "playground/", "tmp/", ".venv/"]
|
|
34
34
|
|
|
35
35
|
[tool.pytest.ini_options]
|
|
36
36
|
addopts = "--cov --cov-report=term-missing --cov-report=html:tmp/htmlcov"
|
|
@@ -203,9 +203,21 @@ def _smart_cast[T](value: t.Any, type_hint: type[T] | None) -> T | t.Any:
|
|
|
203
203
|
) from e
|
|
204
204
|
|
|
205
205
|
|
|
206
|
+
@t.overload
|
|
206
207
|
def get_pytest_option[T](
|
|
207
|
-
namespace: str, config: Config, key: str, *, type_hint: type[T]
|
|
208
|
-
) -> T |
|
|
208
|
+
namespace: str, config: Config, key: str, *, type_hint: type[T]
|
|
209
|
+
) -> T | None: ...
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
@t.overload
|
|
213
|
+
def get_pytest_option(
|
|
214
|
+
namespace: str, config: Config, key: str, *, type_hint: None = None
|
|
215
|
+
) -> t.Any | None: ...
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def get_pytest_option(
|
|
219
|
+
namespace: str, config: Config, key: str, *, type_hint: t.Any | None = None
|
|
220
|
+
) -> t.Any | None:
|
|
209
221
|
"""
|
|
210
222
|
Retrieve a configuration value from runtime overrides, CLI, or INI files.
|
|
211
223
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|