testit-python-commons 3.10.8__tar.gz → 3.10.9__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.
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/PKG-INFO +1 -1
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/setup.py +1 -1
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/plugin_manager.py +28 -8
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/README.md +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/setup.cfg +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/app_properties.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons.egg-info/requires.txt +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/tests/test_app_properties.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/tests/test_dynamic_methods.py +0 -0
- {testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/tests/test_html_escape_utils.py +0 -0
|
@@ -2,8 +2,8 @@ import logging
|
|
|
2
2
|
|
|
3
3
|
from pluggy import PluginManager
|
|
4
4
|
|
|
5
|
-
from testit_python_commons.services.step_manager import StepManager
|
|
6
5
|
from testit_python_commons.app_properties import AppProperties
|
|
6
|
+
from testit_python_commons.services.step_manager import StepManager
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
class TmsPluginManager:
|
|
@@ -16,26 +16,32 @@ class TmsPluginManager:
|
|
|
16
16
|
@classmethod
|
|
17
17
|
def get_plugin_manager(cls):
|
|
18
18
|
if cls.__plugin_manager is None:
|
|
19
|
-
cls.__plugin_manager = PluginManager(
|
|
19
|
+
cls.__plugin_manager = PluginManager("testit")
|
|
20
20
|
|
|
21
21
|
return cls.__plugin_manager
|
|
22
22
|
|
|
23
23
|
@classmethod
|
|
24
24
|
def get_adapter_manager(cls, option=None):
|
|
25
25
|
if cls.__adapter_manager is None:
|
|
26
|
+
from testit_python_commons.client.client_configuration import (
|
|
27
|
+
ClientConfiguration,
|
|
28
|
+
)
|
|
26
29
|
from testit_python_commons.services.adapter_manager import AdapterManager
|
|
27
|
-
from testit_python_commons.
|
|
28
|
-
|
|
30
|
+
from testit_python_commons.services.adapter_manager_configuration import (
|
|
31
|
+
AdapterManagerConfiguration,
|
|
32
|
+
)
|
|
29
33
|
|
|
30
34
|
app_properties = AppProperties.load_properties(option)
|
|
31
35
|
|
|
32
|
-
cls.get_logger(app_properties.get(
|
|
36
|
+
cls.get_logger(app_properties.get("logs") == "true")
|
|
33
37
|
|
|
34
38
|
client_configuration = ClientConfiguration(app_properties)
|
|
35
39
|
adapter_configuration = AdapterManagerConfiguration(app_properties)
|
|
36
40
|
fixture_manager = cls.get_fixture_manager()
|
|
37
41
|
|
|
38
|
-
cls.__adapter_manager = AdapterManager(
|
|
42
|
+
cls.__adapter_manager = AdapterManager(
|
|
43
|
+
adapter_configuration, client_configuration, fixture_manager
|
|
44
|
+
)
|
|
39
45
|
|
|
40
46
|
return cls.__adapter_manager
|
|
41
47
|
|
|
@@ -58,12 +64,26 @@ class TmsPluginManager:
|
|
|
58
64
|
@classmethod
|
|
59
65
|
def get_logger(cls, debug: bool = False):
|
|
60
66
|
if cls.__logger is None:
|
|
67
|
+
# Fix for live log duplication issue
|
|
68
|
+
# Create a dedicated handler for TmsLogger to avoid affecting global logging configuration
|
|
69
|
+
cls.__logger = logging.getLogger("TmsLogger")
|
|
70
|
+
|
|
71
|
+
# Only add handler if none exists to prevent duplicates
|
|
72
|
+
if not cls.__logger.handlers:
|
|
73
|
+
handler = logging.StreamHandler()
|
|
74
|
+
formatter = logging.Formatter(
|
|
75
|
+
"\n%(levelname)s (%(asctime)s): %(message)s"
|
|
76
|
+
)
|
|
77
|
+
handler.setFormatter(formatter)
|
|
78
|
+
cls.__logger.addHandler(handler)
|
|
79
|
+
|
|
61
80
|
# Always show WARNING and above (WARNING, ERROR, CRITICAL)
|
|
62
81
|
# Only show DEBUG and INFO when debug mode is enabled
|
|
63
82
|
level = logging.DEBUG if debug else logging.WARNING
|
|
64
|
-
|
|
83
|
+
cls.__logger.setLevel(level)
|
|
65
84
|
|
|
66
|
-
|
|
85
|
+
# Prevent propagation to root logger to avoid interference with user loggers
|
|
86
|
+
cls.__logger.propagate = False
|
|
67
87
|
|
|
68
88
|
return cls.__logger
|
|
69
89
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/__init__.py
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/src/testit_python_commons/step.py
RENAMED
|
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
|
{testit_python_commons-3.10.8 → testit_python_commons-3.10.9}/tests/test_html_escape_utils.py
RENAMED
|
File without changes
|