pytest-csv-params 2.2.3__tar.gz → 2.2.5__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_csv_params-2.2.3 → pytest_csv_params-2.2.5}/PKG-INFO +2 -2
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/README.md +1 -1
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/version.py +11 -2
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pyproject.toml +2 -1
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/.gitignore +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/LICENSE.txt +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/__init__.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/cmdline.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/configure.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/exception.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/parametrize.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/plugin.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/_ptcsvp/varname.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/__init__.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/decorator.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/dialect.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/exception.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/plugin.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/shortcut.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/types.py +0 -0
- {pytest_csv_params-2.2.3 → pytest_csv_params-2.2.5}/pytest_csv_params/warning.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: pytest-csv-params
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.5
|
|
4
4
|
Summary: Pytest plugin for Test Case Parametrization with CSV files
|
|
5
5
|
Project-URL: repository, https://git.codebau.dev/pytest-plugins/pytest-csv-params
|
|
6
6
|
Project-URL: homepage, https://git.codebau.dev/pytest-plugins/pytest-csv-params
|
|
@@ -41,7 +41,7 @@ Description-Content-Type: text/markdown
|
|
|
41
41
|
A pytest plugin to parametrize data-driven tests by CSV files.
|
|
42
42
|
|
|
43
43
|

|
|
44
|
-

|
|
45
45
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
46
46
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
47
47
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
A pytest plugin to parametrize data-driven tests by CSV files.
|
|
6
6
|
|
|
7
7
|

|
|
8
|
-

|
|
9
9
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
10
10
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
11
11
|
[](https://pypi.org/project/pytest-csv-params/)
|
|
@@ -6,29 +6,35 @@ During the setup phase of the plugin (see :mod:`pytest_csv_params.plugin`) these
|
|
|
6
6
|
"""
|
|
7
7
|
|
|
8
8
|
import sys
|
|
9
|
+
import warnings
|
|
9
10
|
|
|
10
11
|
from packaging.version import parse
|
|
11
12
|
|
|
12
13
|
from .exception import PytestVersionTooOldException, PythonVersionTooOldException
|
|
13
14
|
|
|
14
15
|
|
|
15
|
-
def check_python_version(min_version: tuple[int, int] = (3, 10)) -> None:
|
|
16
|
+
def check_python_version(min_version: tuple[int, int] = (3, 10), deprecation_below: tuple[int, int] = (3, 11)) -> None:
|
|
16
17
|
"""
|
|
17
18
|
Check if the current version is at least 3.10
|
|
18
19
|
|
|
19
20
|
:param min_version: The minimum version required, as tuple, default is 3.10
|
|
21
|
+
:param deprecation_below: The version below which a deprecation warning is raised, as tuple, default is 3.11
|
|
20
22
|
:raises PythonVersionTooOldException: When the python version is too old/unsupported
|
|
21
23
|
"""
|
|
22
24
|
|
|
23
25
|
if sys.version_info < min_version:
|
|
24
26
|
raise PythonVersionTooOldException(f"At least Python {'.'.join(map(str, min_version))} required")
|
|
25
27
|
|
|
28
|
+
if sys.version_info < deprecation_below:
|
|
29
|
+
warnings.warn(f"Python {'.'.join(map(str, deprecation_below))} is deprecated", DeprecationWarning)
|
|
26
30
|
|
|
27
|
-
|
|
31
|
+
|
|
32
|
+
def check_pytest_version(min_version: tuple[int, int] = (8, 3), deprecation_below: tuple[int, int] = (9, 0)) -> None:
|
|
28
33
|
"""
|
|
29
34
|
Check if the current version is at least 8.3
|
|
30
35
|
|
|
31
36
|
:param min_version: The minimum version required, as tuple, default is 8.3
|
|
37
|
+
:param deprecation_below: The version below which a deprecation warning is raised, as tuple, default is 9.0
|
|
32
38
|
:raises PytestVersionTooOldException: When the pytest version is too old/unsupported
|
|
33
39
|
"""
|
|
34
40
|
|
|
@@ -39,3 +45,6 @@ def check_pytest_version(min_version: tuple[int, int] = (8, 3)) -> None:
|
|
|
39
45
|
parsed_actual_version = parse(pytest_version)
|
|
40
46
|
if parsed_actual_version < parsed_min_version:
|
|
41
47
|
raise PytestVersionTooOldException(f"At least Pytest {pytest_min_version} required")
|
|
48
|
+
|
|
49
|
+
if parsed_actual_version < parse(".".join(map(str, deprecation_below))):
|
|
50
|
+
warnings.warn(f"Pytest {'.'.join(map(str, deprecation_below))} is deprecated", DeprecationWarning)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "pytest-csv-params"
|
|
3
|
-
version = "2.2.
|
|
3
|
+
version = "2.2.5"
|
|
4
4
|
description = "Pytest plugin for Test Case Parametrization with CSV files"
|
|
5
5
|
authors = [
|
|
6
6
|
{ name = "Juergen Edelbluth", email = "csv_params@jued.de" },
|
|
@@ -44,6 +44,7 @@ dev = [
|
|
|
44
44
|
"pytest-clarity>=1.0.1",
|
|
45
45
|
"pytest-order>=1.0.1",
|
|
46
46
|
"ruff>=0.16.10",
|
|
47
|
+
"packaging>=26.3",
|
|
47
48
|
]
|
|
48
49
|
|
|
49
50
|
docs = [
|
|
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
|