pytest-plugins 0.3.3__tar.gz → 0.3.4__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.3/pytest_plugins.egg-info → pytest_plugins-0.3.4}/PKG-INFO +1 -1
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/utils/helper.py +3 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4/pytest_plugins.egg-info}/PKG-INFO +1 -1
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/setup.py +1 -1
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/LICENSE +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/MANIFEST.in +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/README.md +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pyproject.toml +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/__init__.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/add_config_parameters.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/better_report.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/fail2skip.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/max_fail_streak.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/__init__.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/base_class_test.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/environment_data.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/execution_data.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/status.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/models/test_data.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/utils/__init__.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/utils/create_report.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/utils/pytest_helper.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins/verbose_param_ids.py +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins.egg-info/SOURCES.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins.egg-info/dependency_links.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins.egg-info/entry_points.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins.egg-info/requires.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/pytest_plugins.egg-info/top_level.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/requirements.txt +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/setup.cfg +0 -0
- {pytest_plugins-0.3.3 → pytest_plugins-0.3.4}/tests/test_dummy.py +0 -0
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import json
|
|
2
|
+
import logging
|
|
2
3
|
from dataclasses import is_dataclass
|
|
3
4
|
from enum import Enum, StrEnum
|
|
4
5
|
from pathlib import Path
|
|
5
6
|
|
|
7
|
+
logger = logging.getLogger('pytest_plugins.utils')
|
|
6
8
|
|
|
7
9
|
def get_project_root(marker: str = ".git") -> Path | None:
|
|
8
10
|
path = Path(__file__).resolve()
|
|
@@ -17,6 +19,7 @@ def serialize_data(obj):
|
|
|
17
19
|
return obj.value
|
|
18
20
|
if is_dataclass(obj):
|
|
19
21
|
return obj.__dict__
|
|
22
|
+
logger.error(f'Object is not serializable: {obj}')
|
|
20
23
|
raise TypeError(f"Type {type(obj)} not serializable")
|
|
21
24
|
|
|
22
25
|
|
|
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
|
|
File without changes
|