pytest-plugins 1.0.0__tar.gz → 1.0.2__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 (33) hide show
  1. {pytest_plugins-1.0.0/pytest_plugins.egg-info → pytest_plugins-1.0.2}/PKG-INFO +1 -1
  2. pytest_plugins-1.0.2/pytest_plugins/__init__.py +6 -0
  3. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/add_config_parameters.py +2 -2
  4. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/better_report.py +2 -2
  5. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/fail2skip.py +2 -2
  6. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/max_fail_streak.py +2 -2
  7. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/utils/helper.py +4 -3
  8. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/utils/pytest_helper.py +2 -1
  9. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2/pytest_plugins.egg-info}/PKG-INFO +1 -1
  10. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/setup.py +1 -1
  11. pytest_plugins-1.0.0/pytest_plugins/__init__.py +0 -5
  12. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/LICENSE +0 -0
  13. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/MANIFEST.in +0 -0
  14. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/README.md +0 -0
  15. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pyproject.toml +0 -0
  16. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/__init__.py +0 -0
  17. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/base_class_test.py +0 -0
  18. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/environment_data.py +0 -0
  19. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/execution_data.py +0 -0
  20. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/status.py +0 -0
  21. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/models/test_data.py +0 -0
  22. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/utils/__init__.py +0 -0
  23. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/utils/create_report.py +0 -0
  24. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins/verbose_param_ids.py +0 -0
  25. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins.egg-info/SOURCES.txt +0 -0
  26. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins.egg-info/dependency_links.txt +0 -0
  27. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins.egg-info/entry_points.txt +0 -0
  28. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins.egg-info/requires.txt +0 -0
  29. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/pytest_plugins.egg-info/top_level.txt +0 -0
  30. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/requirements.txt +0 -0
  31. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/setup.cfg +0 -0
  32. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/tests/test_dummy.py +0 -0
  33. {pytest_plugins-1.0.0 → pytest_plugins-1.0.2}/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.0
3
+ Version: 1.0.2
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
@@ -0,0 +1,6 @@
1
+ from custom_python_logger import get_logger
2
+ from dotenv import load_dotenv
3
+
4
+ load_dotenv()
5
+
6
+ logger = get_logger("pytest-plugins")
@@ -1,13 +1,13 @@
1
- import logging
2
1
  from pathlib import Path
3
2
 
4
3
  import pytest
5
4
  from _pytest.config import Parser, Config
6
5
  from _pytest.python import Function
6
+ from custom_python_logger import get_logger
7
7
 
8
8
  from pytest_plugins.utils.helper import open_json
9
9
 
10
- logger = logging.getLogger('pytest_plugins.add_parameters')
10
+ logger = get_logger('pytest_plugins.add_parameters')
11
11
 
12
12
 
13
13
  def pytest_addoption(parser: Parser) -> None:
@@ -1,5 +1,4 @@
1
1
  import json
2
- import logging
3
2
  import platform
4
3
  import sys
5
4
  import time
@@ -12,6 +11,7 @@ from _pytest.config import Config, Parser
12
11
  from _pytest.fixtures import FixtureRequest
13
12
  from _pytest.main import Session
14
13
  from _pytest.python import Function
14
+ from custom_python_logger import get_logger
15
15
 
16
16
  from pytest_plugins.models.environment_data import EnvironmentData
17
17
  from pytest_plugins.utils.helper import save_as_json, serialize_data, save_as_markdown, get_project_root
@@ -27,7 +27,7 @@ from pytest_plugins.utils.create_report import generate_md_report
27
27
  execution_results = {}
28
28
  test_results = {}
29
29
 
30
- logger = logging.getLogger('pytest_plugins.better_report')
30
+ logger = get_logger('pytest_plugins.better_report')
31
31
 
32
32
 
33
33
  def pytest_addoption(parser: Parser) -> None:
@@ -1,15 +1,15 @@
1
- import logging
2
1
  from typing import Any, Generator
3
2
 
4
3
  import pytest
5
4
  from _pytest.config import Config, Parser
6
5
  from _pytest.python import Function
6
+ from custom_python_logger import get_logger
7
7
 
8
8
  from pytest_plugins.better_report import test_results
9
9
  from pytest_plugins.models import ExecutionStatus
10
10
  from pytest_plugins.utils.pytest_helper import get_test_full_name
11
11
 
12
- logger = logging.getLogger("pytest_plugins.fail2skip")
12
+ logger = get_logger("pytest_plugins.fail2skip")
13
13
 
14
14
 
15
15
  def pytest_addoption(parser: Parser) -> None:
@@ -1,13 +1,13 @@
1
- import logging
2
1
  import pytest
3
2
  from _pytest.config import Config, Parser
4
3
  from _pytest.python import Function
4
+ from custom_python_logger import get_logger
5
5
 
6
6
  from pytest_plugins.better_report import test_results
7
7
  from pytest_plugins.models import ExecutionStatus
8
8
  from pytest_plugins.utils.pytest_helper import get_test_full_name
9
9
 
10
- logger = logging.getLogger('pytest_plugins.max_fail_streak')
10
+ logger = get_logger('pytest_plugins.max_fail_streak')
11
11
  global_interface = {}
12
12
 
13
13
 
@@ -1,12 +1,13 @@
1
1
  import json
2
- import logging
3
2
  from dataclasses import is_dataclass
4
3
  from datetime import datetime, date, time
5
4
  from decimal import Decimal
6
- from enum import Enum, StrEnum
5
+ from enum import Enum
7
6
  from pathlib import Path
8
7
 
9
- logger = logging.getLogger('pytest_plugins.utils')
8
+ from custom_python_logger import get_logger
9
+
10
+ logger = get_logger('pytest_plugins.utils')
10
11
 
11
12
  def get_project_root(marker: str = ".git") -> Path | None:
12
13
  path = Path(__file__).resolve()
@@ -2,10 +2,11 @@ import json
2
2
  import logging
3
3
 
4
4
  from _pytest.python import Function
5
+ from custom_python_logger import get_logger
5
6
 
6
7
  from pytest_plugins.utils.helper import serialize_data
7
8
 
8
- logger = logging.getLogger()
9
+ logger = get_logger(__name__)
9
10
 
10
11
 
11
12
  def get_test_path_without_parameters(item: Function) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytest-plugins
3
- Version: 1.0.0
3
+ Version: 1.0.2
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
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- package_version = '1.0.0'
3
+ package_version = '1.0.2'
4
4
 
5
5
  package_name = 'pytest-plugins'
6
6
  package_description = 'A Python package for managing pytest plugins.'
@@ -1,5 +0,0 @@
1
- import logging
2
-
3
- from custom_python_logger import build_logger
4
-
5
- logger = build_logger(project_name='pytest-plugins', log_level=logging.DEBUG)
File without changes
File without changes
File without changes