testit-python-commons 4.1.7.post570__tar.gz → 4.1.8.post570__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 (80) hide show
  1. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/PKG-INFO +1 -1
  2. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/setup.py +1 -1
  3. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/app_properties.py +3 -1
  4. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/client_configuration.py +5 -0
  5. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/configurations/properties_names.py +3 -0
  6. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/link.py +3 -0
  7. testit_python_commons-4.1.8.post570/src/testit_python_commons/services/__init__.py +41 -0
  8. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/adapter_manager.py +10 -9
  9. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/utils.py +10 -2
  10. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
  11. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/tests/test_app_properties.py +4 -1
  12. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/tests/test_dynamic_methods.py +1 -1
  13. testit_python_commons-4.1.7.post570/src/testit_python_commons/services/__init__.py +0 -20
  14. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/README.md +0 -0
  15. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/setup.cfg +0 -0
  16. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/__init__.py +0 -0
  17. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/__init__.py +0 -0
  18. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/completion_api.py +0 -0
  19. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/health_api.py +0 -0
  20. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/system_api.py +0 -0
  21. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/test_results_api.py +0 -0
  22. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api/workers_api.py +0 -0
  23. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/api_client.py +0 -0
  24. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/apis/__init__.py +0 -0
  25. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/configuration.py +0 -0
  26. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/exceptions.py +0 -0
  27. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/__init__.py +0 -0
  28. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/completion_response.py +0 -0
  29. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/health_status_response.py +0 -0
  30. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/register_request.py +0 -0
  31. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/register_response.py +0 -0
  32. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/set_worker_status_request.py +0 -0
  33. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/set_worker_status_response.py +0 -0
  34. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/shutdown_response.py +0 -0
  35. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/test_result_cut_api_model.py +0 -0
  36. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model/test_result_save_response.py +0 -0
  37. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/model_utils.py +0 -0
  38. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/models/__init__.py +0 -0
  39. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/api_client_syncstorage/rest.py +0 -0
  40. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit.py +0 -0
  41. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/__init__.py +0 -0
  42. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/__init__.py +0 -0
  43. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/api_client.py +0 -0
  44. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/converter.py +0 -0
  45. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/helpers/__init__.py +0 -0
  46. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
  47. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
  48. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/models/__init__.py +0 -0
  49. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
  50. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
  51. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/configurations/__init__.py +0 -0
  52. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/decorators.py +0 -0
  53. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/dynamic_methods.py +0 -0
  54. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/__init__.py +0 -0
  55. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/adapter_mode.py +0 -0
  56. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/fixture.py +0 -0
  57. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/link_type.py +0 -0
  58. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/outcome_type.py +0 -0
  59. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/status_type.py +0 -0
  60. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/step_result.py +0 -0
  61. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/test_result.py +0 -0
  62. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  63. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  64. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/fixture_manager.py +0 -0
  65. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/fixture_storage.py +0 -0
  66. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/logger.py +0 -0
  67. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/plugin_manager.py +0 -0
  68. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/retry.py +0 -0
  69. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/step_manager.py +0 -0
  70. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/step_result_storage.py +0 -0
  71. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/sync_storage/__init__.py +0 -0
  72. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/services/sync_storage/sync_storage_runner.py +0 -0
  73. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/step.py +0 -0
  74. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/utils/__init__.py +0 -0
  75. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
  76. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  77. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  78. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons.egg-info/requires.txt +0 -0
  79. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/src/testit_python_commons.egg-info/top_level.txt +0 -0
  80. {testit_python_commons-4.1.7.post570 → testit_python_commons-4.1.8.post570}/tests/test_html_escape_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 4.1.7.post570
3
+ Version: 4.1.8.post570
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -1,6 +1,6 @@
1
1
  from setuptools import find_packages, setup
2
2
 
3
- VERSION = "4.1.7.post570"
3
+ VERSION = "4.1.8.post570"
4
4
 
5
5
  setup(
6
6
  name='testit-python-commons',
@@ -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
  }
@@ -31,6 +31,9 @@ class Link:
31
31
 
32
32
  @adapter_logger
33
33
  def set_link_type(self, link_type: LinkType):
34
+ if link_type is None:
35
+ link_type = LinkType.RELATED
36
+
34
37
  self.__link_type = link_type
35
38
 
36
39
  return self
@@ -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: {url} {private_token} {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.warning("Is already in progress: " + str(self.__is_already_in_progress()))
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.warning(f"Outcome: {test_result.get_outcome()}")
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.warning("Set as in progress status_code, auto_test_external_id: "
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.warning("Started_on: " + str(test_result.get_started_on()))
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.warning("Write internally, change status to in progress")
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.warning("Is already in progress: " + str(self.__is_already_in_progress()))
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.info(f"Set worker_status to {status}")
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,16 @@ import inspect
2
2
  import logging
3
3
  import re
4
4
  import warnings
5
+ from typing import TYPE_CHECKING
6
+
5
7
 
6
8
  from testit_python_commons.models.link import Link
9
+ from testit_python_commons.models.link_type import LinkType
7
10
  from testit_python_commons.services.logger import adapter_logger
8
11
 
12
+ if TYPE_CHECKING:
13
+ from testit_python_commons.models.link import Link
14
+
9
15
 
10
16
  class Utils:
11
17
  @staticmethod
@@ -93,7 +99,9 @@ class Utils:
93
99
 
94
100
  @staticmethod
95
101
  @adapter_logger
96
- def convert_link_dict_to_link_model(link_dict: dict) -> Link:
102
+ def convert_link_dict_to_link_model(link_dict: dict) -> "Link":
103
+ from testit_python_commons.models.link import Link
104
+
97
105
  link_model = Link()
98
106
  link_model.set_url(link_dict['url'])
99
107
 
@@ -101,7 +109,7 @@ class Utils:
101
109
  link_model.set_title(link_dict['title'])
102
110
 
103
111
  if 'type' in link_dict:
104
- link_model.set_link_type(link_dict['type'])
112
+ link_model.set_link_type(link_dict.get('type', LinkType.RELATED))
105
113
 
106
114
  if 'description' in link_dict:
107
115
  link_model.set_description(link_dict['description'])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 4.1.7.post570
3
+ Version: 4.1.8.post570
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -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.ISSUE,
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")