testit-python-commons 2.7.1__tar.gz → 2.8.1__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 (36) hide show
  1. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/PKG-INFO +2 -2
  2. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/setup.py +2 -2
  3. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/app_properties.py +40 -22
  4. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons.egg-info/PKG-INFO +2 -2
  5. testit-python-commons-2.8.1/src/testit_python_commons.egg-info/requires.txt +2 -0
  6. testit-python-commons-2.7.1/src/testit_python_commons.egg-info/requires.txt +0 -2
  7. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/README.md +0 -0
  8. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/setup.cfg +0 -0
  9. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit.py +0 -0
  10. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/__init__.py +0 -0
  11. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/client/__init__.py +0 -0
  12. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/client/api_client.py +0 -0
  13. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/client/client_configuration.py +0 -0
  14. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/client/converter.py +0 -0
  15. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/decorators.py +0 -0
  16. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/dynamic_methods.py +0 -0
  17. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/__init__.py +0 -0
  18. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/adapter_mode.py +0 -0
  19. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/link.py +0 -0
  20. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/link_type.py +0 -0
  21. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/outcome_type.py +0 -0
  22. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/step_result.py +0 -0
  23. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/test_result.py +0 -0
  24. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  25. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/__init__.py +0 -0
  26. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/adapter_manager.py +0 -0
  27. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  28. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/logger.py +0 -0
  29. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/plugin_manager.py +0 -0
  30. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/step_manager.py +0 -0
  31. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/step_result_storage.py +0 -0
  32. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/services/utils.py +0 -0
  33. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons/step.py +0 -0
  34. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  35. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  36. {testit-python-commons-2.7.1 → testit-python-commons-2.8.1}/src/testit_python_commons.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-python-commons
3
- Version: 2.7.1
3
+ Version: 2.8.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==3.4.1
19
+ Requires-Dist: testit-api-client==3.5.0
20
20
 
21
21
  # How to enable debug logging?
22
22
  1. Add in **connection_config.ini** file from the root directory of the project:
@@ -2,7 +2,7 @@ from setuptools import find_packages, setup
2
2
 
3
3
  setup(
4
4
  name='testit-python-commons',
5
- version='2.7.1',
5
+ version='2.8.1',
6
6
  description='Python commons for Test IT',
7
7
  long_description=open('README.md', "r").read(),
8
8
  long_description_content_type="text/markdown",
@@ -23,5 +23,5 @@ setup(
23
23
  py_modules=['testit', 'testit_python_commons'],
24
24
  packages=find_packages(where='src'),
25
25
  package_dir={'': 'src'},
26
- install_requires=['pluggy', 'testit-api-client==3.4.1']
26
+ install_requires=['pluggy', 'testit-api-client==3.5.0']
27
27
  )
@@ -72,38 +72,39 @@ class AppProperties:
72
72
 
73
73
  return properties
74
74
 
75
- @staticmethod
76
- def load_cli_properties(option):
75
+ @classmethod
76
+ def load_cli_properties(cls, option):
77
77
  cli_properties = {}
78
78
 
79
- if hasattr(option, 'set_url') and option.set_url:
79
+ if hasattr(option, 'set_url') and cls.__check_property_value(option.set_url):
80
80
  cli_properties['url'] = option.set_url
81
81
 
82
- if hasattr(option, 'set_private_token') and option.set_private_token:
82
+ if hasattr(option, 'set_private_token') and cls.__check_property_value(option.set_private_token):
83
83
  cli_properties['privatetoken'] = option.set_private_token
84
84
 
85
- if hasattr(option, 'set_project_id') and option.set_project_id:
85
+ if hasattr(option, 'set_project_id') and cls.__check_property_value(option.set_project_id):
86
86
  cli_properties['projectid'] = option.set_project_id
87
87
 
88
- if hasattr(option, 'set_configuration_id') and option.set_configuration_id:
88
+ if hasattr(option, 'set_configuration_id') and cls.__check_property_value(option.set_configuration_id):
89
89
  cli_properties['configurationid'] = option.set_configuration_id
90
90
 
91
- if hasattr(option, 'set_test_run_id') and option.set_test_run_id:
91
+ if hasattr(option, 'set_test_run_id') and cls.__check_property_value(option.set_test_run_id):
92
92
  cli_properties['testrunid'] = option.set_test_run_id
93
93
 
94
- if hasattr(option, 'set_test_run_name') and option.set_test_run_name:
94
+ if hasattr(option, 'set_test_run_name') and cls.__check_property_value(option.set_test_run_name):
95
95
  cli_properties['testrunname'] = option.set_test_run_name
96
96
 
97
- if hasattr(option, 'set_tms_proxy') and option.set_tms_proxy:
97
+ if hasattr(option, 'set_tms_proxy') and cls.__check_property_value(option.set_tms_proxy):
98
98
  cli_properties['tmsproxy'] = option.set_tms_proxy
99
99
 
100
- if hasattr(option, 'set_adapter_mode') and option.set_adapter_mode:
100
+ if hasattr(option, 'set_adapter_mode') and cls.__check_property_value(option.set_adapter_mode):
101
101
  cli_properties['adaptermode'] = option.set_adapter_mode
102
102
 
103
- if hasattr(option, 'set_cert_validation') and option.set_cert_validation:
103
+ if hasattr(option, 'set_cert_validation') and cls.__check_property_value(option.set_cert_validation):
104
104
  cli_properties['certvalidation'] = option.set_cert_validation
105
105
 
106
- if hasattr(option, 'set_automatic_creation_test_cases') and option.set_automatic_creation_test_cases:
106
+ if hasattr(option, 'set_automatic_creation_test_cases') and cls.__check_property_value(
107
+ option.set_automatic_creation_test_cases):
107
108
  cli_properties['automaticcreationtestcases'] = option.set_automatic_creation_test_cases
108
109
 
109
110
  return cli_properties
@@ -112,34 +113,44 @@ class AppProperties:
112
113
  def load_env_properties(cls):
113
114
  env_properties = {}
114
115
 
115
- if f'{cls.__env_prefix}_URL' in os.environ.keys():
116
+ if f'{cls.__env_prefix}_URL' in os.environ.keys() and cls.__check_property_value(
117
+ os.environ.get(f'{cls.__env_prefix}_URL')):
116
118
  env_properties['url'] = os.environ.get(f'{cls.__env_prefix}_URL')
117
119
 
118
- if f'{cls.__env_prefix}_PRIVATE_TOKEN' in os.environ.keys():
120
+ if f'{cls.__env_prefix}_PRIVATE_TOKEN' in os.environ.keys() and cls.__check_property_value(
121
+ os.environ.get(f'{cls.__env_prefix}_PRIVATE_TOKEN')):
119
122
  env_properties['privatetoken'] = os.environ.get(f'{cls.__env_prefix}_PRIVATE_TOKEN')
120
123
 
121
- if f'{cls.__env_prefix}_PROJECT_ID' in os.environ.keys():
124
+ if f'{cls.__env_prefix}_PROJECT_ID' in os.environ.keys() and cls.__check_property_value(
125
+ os.environ.get(f'{cls.__env_prefix}_PROJECT_ID')):
122
126
  env_properties['projectid'] = os.environ.get(f'{cls.__env_prefix}_PROJECT_ID')
123
127
 
124
- if f'{cls.__env_prefix}_CONFIGURATION_ID' in os.environ.keys():
128
+ if f'{cls.__env_prefix}_CONFIGURATION_ID' in os.environ.keys() and cls.__check_property_value(
129
+ os.environ.get(f'{cls.__env_prefix}_CONFIGURATION_ID')):
125
130
  env_properties['configurationid'] = os.environ.get(f'{cls.__env_prefix}_CONFIGURATION_ID')
126
131
 
127
- if f'{cls.__env_prefix}_TEST_RUN_ID' in os.environ.keys():
132
+ if f'{cls.__env_prefix}_TEST_RUN_ID' in os.environ.keys() and cls.__check_property_value(
133
+ os.environ.get(f'{cls.__env_prefix}_TEST_RUN_ID')):
128
134
  env_properties['testrunid'] = os.environ.get(f'{cls.__env_prefix}_TEST_RUN_ID')
129
135
 
130
- if f'{cls.__env_prefix}_TEST_RUN_NAME' in os.environ.keys():
136
+ if f'{cls.__env_prefix}_TEST_RUN_NAME' in os.environ.keys() and cls.__check_property_value(
137
+ os.environ.get(f'{cls.__env_prefix}_TEST_RUN_NAME')):
131
138
  env_properties['testrunname'] = os.environ.get(f'{cls.__env_prefix}_TEST_RUN_NAME')
132
139
 
133
- if f'{cls.__env_prefix}_PROXY' in os.environ.keys():
140
+ if f'{cls.__env_prefix}_PROXY' in os.environ.keys() and cls.__check_property_value(
141
+ os.environ.get(f'{cls.__env_prefix}_PROXY')):
134
142
  env_properties['tmsproxy'] = os.environ.get(f'{cls.__env_prefix}_PROXY')
135
143
 
136
- if f'{cls.__env_prefix}_ADAPTER_MODE' in os.environ.keys():
144
+ if f'{cls.__env_prefix}_ADAPTER_MODE' in os.environ.keys() and cls.__check_property_value(
145
+ os.environ.get(f'{cls.__env_prefix}_ADAPTER_MODE')):
137
146
  env_properties['adaptermode'] = os.environ.get(f'{cls.__env_prefix}_ADAPTER_MODE')
138
147
 
139
- if f'{cls.__env_prefix}_CERT_VALIDATION' in os.environ.keys():
148
+ if f'{cls.__env_prefix}_CERT_VALIDATION' in os.environ.keys() and cls.__check_property_value(
149
+ os.environ.get(f'{cls.__env_prefix}_CERT_VALIDATION')):
140
150
  env_properties['certvalidation'] = os.environ.get(f'{cls.__env_prefix}_CERT_VALIDATION')
141
151
 
142
- if f'{cls.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES' in os.environ.keys():
152
+ if f'{cls.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES' in os.environ.keys() and cls.__check_property_value(
153
+ os.environ.get(f'{cls.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES')):
143
154
  env_properties['automaticcreationtestcases'] = os.environ.get(
144
155
  f'{cls.__env_prefix}_AUTOMATIC_CREATION_TEST_CASES')
145
156
 
@@ -192,3 +203,10 @@ class AppProperties:
192
203
  return os.environ[var_name[1:-1]]
193
204
 
194
205
  return var_name
206
+
207
+ @staticmethod
208
+ def __check_property_value(value: str):
209
+ if value is not None and value != "":
210
+ return True
211
+
212
+ return False
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: testit-python-commons
3
- Version: 2.7.1
3
+ Version: 2.8.1
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.11
16
16
  Classifier: Programming Language :: Python :: 3.12
17
17
  Description-Content-Type: text/markdown
18
18
  Requires-Dist: pluggy
19
- Requires-Dist: testit-api-client==3.4.1
19
+ Requires-Dist: testit-api-client==3.5.0
20
20
 
21
21
  # How to enable debug logging?
22
22
  1. Add in **connection_config.ini** file from the root directory of the project:
@@ -0,0 +1,2 @@
1
+ pluggy
2
+ testit-api-client==3.5.0
@@ -1,2 +0,0 @@
1
- pluggy
2
- testit-api-client==3.4.1