testit-python-commons 4.1.7__tar.gz → 4.1.8__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-4.1.7 → testit_python_commons-4.1.8}/PKG-INFO +1 -1
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/setup.py +1 -1
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/app_properties.py +3 -1
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/client_configuration.py +5 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/configurations/properties_names.py +3 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/link.py +3 -0
- testit_python_commons-4.1.8/src/testit_python_commons/services/__init__.py +41 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/adapter_manager.py +10 -9
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/utils.py +12 -2
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/tests/test_app_properties.py +4 -1
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/tests/test_dynamic_methods.py +1 -1
- testit_python_commons-4.1.7/src/testit_python_commons/services/__init__.py +0 -20
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/README.md +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/setup.cfg +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/completion_api.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/health_api.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/system_api.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/test_results_api.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api/workers_api.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api_client.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/apis/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/configuration.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/exceptions.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/completion_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/health_status_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/register_request.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/register_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/set_worker_status_request.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/set_worker_status_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/shutdown_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/test_result_cut_api_model.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model/test_result_save_response.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/model_utils.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/models/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/rest.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/converter.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/configurations/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/status_type.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/sync_storage/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/services/sync_storage/sync_storage_runner.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons.egg-info/requires.txt +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/tests/test_html_escape_utils.py +0 -0
|
@@ -161,11 +161,13 @@ class AppProperties:
|
|
|
161
161
|
# import realtime false by default
|
|
162
162
|
properties[PropertiesNames.IMPORT_REALTIME] = 'false'
|
|
163
163
|
|
|
164
|
-
print(f'sync storage value {properties.get(PropertiesNames.SYNC_STORAGE_PORT)}')
|
|
165
164
|
if not cls.__check_property_value(properties.get(PropertiesNames.SYNC_STORAGE_PORT)):
|
|
166
165
|
# import realtime false by default
|
|
167
166
|
properties[PropertiesNames.SYNC_STORAGE_PORT] = '49152'
|
|
168
167
|
|
|
168
|
+
if not cls.__check_property_value(properties.get(PropertiesNames.LEGACY_WORKFLOW)):
|
|
169
|
+
properties[PropertiesNames.LEGACY_WORKFLOW] = 'false'
|
|
170
|
+
|
|
169
171
|
@classmethod
|
|
170
172
|
def __load_file_properties_from_toml(cls) -> dict:
|
|
171
173
|
properties = {}
|
|
@@ -22,6 +22,8 @@ class ClientConfiguration:
|
|
|
22
22
|
self.__automatic_updation_links_to_test_cases = Utils.convert_value_str_to_bool(
|
|
23
23
|
app_properties.get(PropertiesNames.AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES).lower())
|
|
24
24
|
self.__sync_storage_port = app_properties.get(PropertiesNames.SYNC_STORAGE_PORT)
|
|
25
|
+
self.__legacy_workflow = Utils.convert_value_str_to_bool(
|
|
26
|
+
app_properties.get(PropertiesNames.LEGACY_WORKFLOW).lower())
|
|
25
27
|
|
|
26
28
|
@adapter_logger
|
|
27
29
|
def get_url(self):
|
|
@@ -67,3 +69,6 @@ class ClientConfiguration:
|
|
|
67
69
|
|
|
68
70
|
def get_sync_storage_port(self) -> str:
|
|
69
71
|
return self.__sync_storage_port
|
|
72
|
+
|
|
73
|
+
def is_legacy_workflow(self) -> bool:
|
|
74
|
+
return self.__legacy_workflow
|
|
@@ -14,6 +14,7 @@ class PropertiesNames:
|
|
|
14
14
|
AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES = 'automaticupdationlinkstotestcases'
|
|
15
15
|
IMPORT_REALTIME = 'importrealtime'
|
|
16
16
|
SYNC_STORAGE_PORT = 'syncstorageport'
|
|
17
|
+
LEGACY_WORKFLOW = 'legacyworkflow'
|
|
17
18
|
|
|
18
19
|
ENV_TO_PROPERTY = {
|
|
19
20
|
'TMS_URL': PropertiesNames.URL,
|
|
@@ -29,6 +30,7 @@ ENV_TO_PROPERTY = {
|
|
|
29
30
|
'TMS_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES': PropertiesNames.AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES,
|
|
30
31
|
'TMS_IMPORT_REALTIME': PropertiesNames.IMPORT_REALTIME,
|
|
31
32
|
'TMS_SYNC_STORAGE_PORT': PropertiesNames.SYNC_STORAGE_PORT,
|
|
33
|
+
'TMS_LEGACY_WORKFLOW': PropertiesNames.LEGACY_WORKFLOW,
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
OPTION_TO_PROPERTY = {
|
|
@@ -45,4 +47,5 @@ OPTION_TO_PROPERTY = {
|
|
|
45
47
|
'set_automatic_updation_links_to_test_cases': PropertiesNames.AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES,
|
|
46
48
|
'set_import_realtime': PropertiesNames.IMPORT_REALTIME,
|
|
47
49
|
'set_sync_storage_port': PropertiesNames.SYNC_STORAGE_PORT,
|
|
50
|
+
'set_legacy_workflow': PropertiesNames.LEGACY_WORKFLOW,
|
|
48
51
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
from pluggy import HookimplMarker
|
|
2
|
+
|
|
3
|
+
__all__ = [
|
|
4
|
+
"AdapterManager",
|
|
5
|
+
"TmsPluginManager",
|
|
6
|
+
"FixtureManager",
|
|
7
|
+
"StepManager",
|
|
8
|
+
"Utils",
|
|
9
|
+
"SyncStorageRunner",
|
|
10
|
+
"hookimpl",
|
|
11
|
+
]
|
|
12
|
+
|
|
13
|
+
hookimpl = HookimplMarker("testit")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def __getattr__(name):
|
|
17
|
+
if name == "AdapterManager":
|
|
18
|
+
from testit_python_commons.services.adapter_manager import AdapterManager
|
|
19
|
+
|
|
20
|
+
return AdapterManager
|
|
21
|
+
if name == "TmsPluginManager":
|
|
22
|
+
from testit_python_commons.services.plugin_manager import TmsPluginManager
|
|
23
|
+
|
|
24
|
+
return TmsPluginManager
|
|
25
|
+
if name == "FixtureManager":
|
|
26
|
+
from testit_python_commons.services.fixture_manager import FixtureManager
|
|
27
|
+
|
|
28
|
+
return FixtureManager
|
|
29
|
+
if name == "StepManager":
|
|
30
|
+
from testit_python_commons.services.step_manager import StepManager
|
|
31
|
+
|
|
32
|
+
return StepManager
|
|
33
|
+
if name == "Utils":
|
|
34
|
+
from testit_python_commons.services.utils import Utils
|
|
35
|
+
|
|
36
|
+
return Utils
|
|
37
|
+
if name == "SyncStorageRunner":
|
|
38
|
+
from testit_python_commons.services.sync_storage import SyncStorageRunner
|
|
39
|
+
|
|
40
|
+
return SyncStorageRunner
|
|
41
|
+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
|
|
@@ -38,8 +38,9 @@ class AdapterManager:
|
|
|
38
38
|
|
|
39
39
|
# Sync Storage integration
|
|
40
40
|
self.__sync_storage_runner = None
|
|
41
|
+
legacy_workflow_enabled = client_configuration.is_legacy_workflow() is True
|
|
41
42
|
# Initialize Sync Storage if available and enabled
|
|
42
|
-
if SYNC_STORAGE_AVAILABLE:
|
|
43
|
+
if SYNC_STORAGE_AVAILABLE and not legacy_workflow_enabled:
|
|
43
44
|
self.__sync_storage_runner = self._initialize_sync_storage(
|
|
44
45
|
client_configuration
|
|
45
46
|
)
|
|
@@ -63,7 +64,7 @@ class AdapterManager:
|
|
|
63
64
|
url = client_configuration.get_url()
|
|
64
65
|
private_token = client_configuration.get_private_token()
|
|
65
66
|
port = client_configuration.get_sync_storage_port()
|
|
66
|
-
print(f'sync storage port: {
|
|
67
|
+
print(f'sync storage port: {port}')
|
|
67
68
|
|
|
68
69
|
# Create and start Sync Storage runner
|
|
69
70
|
if SYNC_STORAGE_AVAILABLE:
|
|
@@ -146,11 +147,11 @@ class AdapterManager:
|
|
|
146
147
|
|
|
147
148
|
# for realtime false
|
|
148
149
|
# if
|
|
149
|
-
logging.
|
|
150
|
+
logging.debug("Is already in progress: " + str(self.__is_already_in_progress()))
|
|
150
151
|
# Handle Sync Storage integration if available
|
|
151
152
|
# Check if current worker is master and no test is in progress
|
|
152
153
|
if self.__is_active_syncstorage_instance() and self.__is_master_and_no_in_progress():
|
|
153
|
-
logging.
|
|
154
|
+
logging.debug(f"Outcome: {test_result.get_outcome()}")
|
|
154
155
|
is_ok = self.on_master_no_already_in_progress(test_result)
|
|
155
156
|
if is_ok:
|
|
156
157
|
return
|
|
@@ -167,9 +168,9 @@ class AdapterManager:
|
|
|
167
168
|
tr_cut_api_model = SyncStorageRunner.test_result_to_test_result_cut_api_model(
|
|
168
169
|
test_result, project_id
|
|
169
170
|
)
|
|
170
|
-
logging.
|
|
171
|
+
logging.debug("Set as in progress status_code, auto_test_external_id: "
|
|
171
172
|
+ tr_cut_api_model.status_code + " " + tr_cut_api_model.auto_test_external_id)
|
|
172
|
-
logging.
|
|
173
|
+
logging.debug("Started_on: " + str(test_result.get_started_on()))
|
|
173
174
|
|
|
174
175
|
# Send test result to Sync Storage
|
|
175
176
|
success = self.__sync_storage_runner.send_in_progress_test_result(
|
|
@@ -184,7 +185,7 @@ class AdapterManager:
|
|
|
184
185
|
|
|
185
186
|
try:
|
|
186
187
|
# Write test result normally (mark as IN PROGRESS in Test IT)
|
|
187
|
-
logging.
|
|
188
|
+
logging.debug("Write internally, change status to in progress")
|
|
188
189
|
test_result.set_outcome(IN_PROGRESS_LITERAL)
|
|
189
190
|
self._write_test_realtime_internal(test_result)
|
|
190
191
|
return True
|
|
@@ -199,7 +200,7 @@ class AdapterManager:
|
|
|
199
200
|
@adapter_logger
|
|
200
201
|
def __write_test_realtime(self, test_result: TestResult) -> None:
|
|
201
202
|
|
|
202
|
-
logging.
|
|
203
|
+
logging.debug("Is already in progress: " + str(self.__is_already_in_progress()))
|
|
203
204
|
|
|
204
205
|
# Handle Sync Storage integration if available
|
|
205
206
|
if self.__is_active_syncstorage_instance() and self.__is_master_and_no_in_progress():
|
|
@@ -284,7 +285,7 @@ class AdapterManager:
|
|
|
284
285
|
|
|
285
286
|
@adapter_logger
|
|
286
287
|
def set_worker_status(self, status: str):
|
|
287
|
-
logging.
|
|
288
|
+
logging.debug(f"Set worker_status to {status}")
|
|
288
289
|
if not self.__is_active_syncstorage_instance():
|
|
289
290
|
return
|
|
290
291
|
|
|
@@ -2,10 +2,18 @@ import inspect
|
|
|
2
2
|
import logging
|
|
3
3
|
import re
|
|
4
4
|
import warnings
|
|
5
|
+
from typing import TYPE_CHECKING
|
|
5
6
|
|
|
7
|
+
<<<<<<< feat/small-fixes
|
|
8
|
+
=======
|
|
6
9
|
from testit_python_commons.models.link import Link
|
|
10
|
+
from testit_python_commons.models.link_type import LinkType
|
|
11
|
+
>>>>>>> main
|
|
7
12
|
from testit_python_commons.services.logger import adapter_logger
|
|
8
13
|
|
|
14
|
+
if TYPE_CHECKING:
|
|
15
|
+
from testit_python_commons.models.link import Link
|
|
16
|
+
|
|
9
17
|
|
|
10
18
|
class Utils:
|
|
11
19
|
@staticmethod
|
|
@@ -93,7 +101,9 @@ class Utils:
|
|
|
93
101
|
|
|
94
102
|
@staticmethod
|
|
95
103
|
@adapter_logger
|
|
96
|
-
def convert_link_dict_to_link_model(link_dict: dict) -> Link:
|
|
104
|
+
def convert_link_dict_to_link_model(link_dict: dict) -> "Link":
|
|
105
|
+
from testit_python_commons.models.link import Link
|
|
106
|
+
|
|
97
107
|
link_model = Link()
|
|
98
108
|
link_model.set_url(link_dict['url'])
|
|
99
109
|
|
|
@@ -101,7 +111,7 @@ class Utils:
|
|
|
101
111
|
link_model.set_title(link_dict['title'])
|
|
102
112
|
|
|
103
113
|
if 'type' in link_dict:
|
|
104
|
-
link_model.set_link_type(link_dict
|
|
114
|
+
link_model.set_link_type(link_dict.get('type', LinkType.RELATED))
|
|
105
115
|
|
|
106
116
|
if 'description' in link_dict:
|
|
107
117
|
link_model.set_description(link_dict['description'])
|
|
@@ -34,7 +34,8 @@ class TestAppProperties:
|
|
|
34
34
|
'certvalidation': "false",
|
|
35
35
|
'automaticcreationtestcases': "true",
|
|
36
36
|
'automaticupdationlinkstotestcases': "true",
|
|
37
|
-
'importrealtime': "false"
|
|
37
|
+
'importrealtime': "false",
|
|
38
|
+
'legacyworkflow': "false",
|
|
38
39
|
}
|
|
39
40
|
|
|
40
41
|
def test_load_file_properties_ini_file(self, create_config_file, tmp_path, mocker):
|
|
@@ -81,6 +82,7 @@ class TestAppProperties:
|
|
|
81
82
|
f"{self.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES": properties["automaticcreationtestcases"],
|
|
82
83
|
f"{self.__env_prefix}_AUTOMATIC_UPDATION_LINKS_TO_TEST_CASES": properties["automaticupdationlinkstotestcases"],
|
|
83
84
|
f"{self.__env_prefix}_IMPORT_REALTIME": properties["importrealtime"],
|
|
85
|
+
f"{self.__env_prefix}_LEGACY_WORKFLOW": properties["legacyworkflow"],
|
|
84
86
|
}
|
|
85
87
|
mocker.patch.dict(os.environ, env_vars, clear=True)
|
|
86
88
|
|
|
@@ -100,6 +102,7 @@ class TestAppProperties:
|
|
|
100
102
|
mock_options.set_automatic_creation_test_cases = properties["automaticcreationtestcases"]
|
|
101
103
|
mock_options.set_automatic_updation_links_to_test_cases = properties["automaticupdationlinkstotestcases"]
|
|
102
104
|
mock_options.set_import_realtime = properties["importrealtime"]
|
|
105
|
+
mock_options.set_legacy_workflow = properties["legacyworkflow"]
|
|
103
106
|
|
|
104
107
|
assert AppProperties.load_cli_properties(mock_options) == properties
|
|
105
108
|
|
|
@@ -14,7 +14,7 @@ class TestDynamicMethods:
|
|
|
14
14
|
return Utils.convert_link_dict_to_link_model({
|
|
15
15
|
"url": "https://www.example.com",
|
|
16
16
|
"title": ''.join(random.choices(string.ascii_letters + string.digits, k=10)),
|
|
17
|
-
"type": LinkType.
|
|
17
|
+
"type": LinkType.RELATED,
|
|
18
18
|
"description": ''.join(random.choices(string.ascii_letters + string.digits, k=10))
|
|
19
19
|
})
|
|
20
20
|
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
from pluggy import HookimplMarker
|
|
2
|
-
|
|
3
|
-
from testit_python_commons.services.adapter_manager import AdapterManager
|
|
4
|
-
from testit_python_commons.services.fixture_manager import FixtureManager
|
|
5
|
-
from testit_python_commons.services.plugin_manager import TmsPluginManager
|
|
6
|
-
from testit_python_commons.services.step_manager import StepManager
|
|
7
|
-
from testit_python_commons.services.utils import Utils
|
|
8
|
-
from .sync_storage import (SyncStorageRunner)
|
|
9
|
-
|
|
10
|
-
__all__ = [
|
|
11
|
-
"AdapterManager",
|
|
12
|
-
"TmsPluginManager",
|
|
13
|
-
"FixtureManager",
|
|
14
|
-
"StepManager",
|
|
15
|
-
"Utils",
|
|
16
|
-
"SyncStorageRunner",
|
|
17
|
-
"hookimpl",
|
|
18
|
-
]
|
|
19
|
-
|
|
20
|
-
hookimpl = HookimplMarker("testit")
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/exceptions.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
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/api_client_syncstorage/rest.py
RENAMED
|
File without changes
|
|
File without changes
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/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
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/src/testit_python_commons/decorators.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
|
{testit_python_commons-4.1.7 → testit_python_commons-4.1.8}/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
|