pytest-plugins 1.0.2__tar.gz → 1.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-1.0.2/pytest_plugins.egg-info → pytest_plugins-1.0.3}/PKG-INFO +2 -1
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/helper.py +5 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3/pytest_plugins.egg-info}/PKG-INFO +2 -1
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/requires.txt +1 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/requirements.txt +1 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/setup.py +1 -1
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/LICENSE +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/MANIFEST.in +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/README.md +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pyproject.toml +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/better_report.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/verbose_param_ids.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/setup.cfg +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/tests/test_dummy.py +0 -0
- {pytest_plugins-1.0.2 → pytest_plugins-1.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: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
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
|
|
@@ -18,6 +18,7 @@ Requires-Dist: colorlog
|
|
|
18
18
|
Requires-Dist: pytest
|
|
19
19
|
Requires-Dist: pytest-rerunfailures
|
|
20
20
|
Requires-Dist: custom-python-logger
|
|
21
|
+
Requires-Dist: pandas
|
|
21
22
|
Dynamic: author
|
|
22
23
|
Dynamic: classifier
|
|
23
24
|
Dynamic: description
|
|
@@ -5,10 +5,12 @@ from decimal import Decimal
|
|
|
5
5
|
from enum import Enum
|
|
6
6
|
from pathlib import Path
|
|
7
7
|
|
|
8
|
+
import pandas as pd
|
|
8
9
|
from custom_python_logger import get_logger
|
|
9
10
|
|
|
10
11
|
logger = get_logger('pytest_plugins.utils')
|
|
11
12
|
|
|
13
|
+
|
|
12
14
|
def get_project_root(marker: str = ".git") -> Path | None:
|
|
13
15
|
path = Path(__file__).resolve()
|
|
14
16
|
for parent in path.parents:
|
|
@@ -34,9 +36,12 @@ def serialize_data(obj: object) -> object: # default_serialize
|
|
|
34
36
|
return float(obj)
|
|
35
37
|
if isinstance(obj, Path):
|
|
36
38
|
return str(obj)
|
|
39
|
+
if obj is pd.NA:
|
|
40
|
+
return None
|
|
37
41
|
logger.error(f'Object is not serializable: {obj}')
|
|
38
42
|
raise TypeError(f"Type {type(obj)} not serializable")
|
|
39
43
|
|
|
44
|
+
|
|
40
45
|
def open_json(path: Path) -> dict:
|
|
41
46
|
with open(path, 'r', encoding='utf-8') as json_file:
|
|
42
47
|
return json.load(json_file)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pytest-plugins
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
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
|
|
@@ -18,6 +18,7 @@ Requires-Dist: colorlog
|
|
|
18
18
|
Requires-Dist: pytest
|
|
19
19
|
Requires-Dist: pytest-rerunfailures
|
|
20
20
|
Requires-Dist: custom-python-logger
|
|
21
|
+
Requires-Dist: pandas
|
|
21
22
|
Dynamic: author
|
|
22
23
|
Dynamic: classifier
|
|
23
24
|
Dynamic: description
|
|
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
|