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.
Files changed (32) hide show
  1. {pytest_plugins-1.0.2/pytest_plugins.egg-info → pytest_plugins-1.0.3}/PKG-INFO +2 -1
  2. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/helper.py +5 -0
  3. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3/pytest_plugins.egg-info}/PKG-INFO +2 -1
  4. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/requires.txt +1 -0
  5. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/requirements.txt +1 -0
  6. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/setup.py +1 -1
  7. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/LICENSE +0 -0
  8. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/MANIFEST.in +0 -0
  9. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/README.md +0 -0
  10. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pyproject.toml +0 -0
  11. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/__init__.py +0 -0
  12. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/add_config_parameters.py +0 -0
  13. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/better_report.py +0 -0
  14. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/fail2skip.py +0 -0
  15. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/max_fail_streak.py +0 -0
  16. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/__init__.py +0 -0
  17. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/base_class_test.py +0 -0
  18. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/environment_data.py +0 -0
  19. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/execution_data.py +0 -0
  20. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/status.py +0 -0
  21. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/models/test_data.py +0 -0
  22. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/__init__.py +0 -0
  23. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/create_report.py +0 -0
  24. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/utils/pytest_helper.py +0 -0
  25. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins/verbose_param_ids.py +0 -0
  26. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/SOURCES.txt +0 -0
  27. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/dependency_links.txt +0 -0
  28. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/entry_points.txt +0 -0
  29. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/pytest_plugins.egg-info/top_level.txt +0 -0
  30. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/setup.cfg +0 -0
  31. {pytest_plugins-1.0.2 → pytest_plugins-1.0.3}/tests/test_dummy.py +0 -0
  32. {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.2
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.2
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,3 +5,4 @@ colorlog
5
5
  pytest
6
6
  pytest-rerunfailures
7
7
  custom-python-logger
8
+ pandas
@@ -5,3 +5,4 @@ colorlog
5
5
  pytest
6
6
  pytest-rerunfailures
7
7
  custom-python-logger
8
+ pandas
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '1.0.2'
3
+ package_version = '1.0.3'
4
4
 
5
5
  package_name = 'pytest-plugins'
6
6
  package_description = 'A Python package for managing pytest plugins.'
File without changes
File without changes
File without changes