testit-python-commons 3.4.0__tar.gz → 3.5.0__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.4.0 → testit_python_commons-3.5.0}/PKG-INFO +12 -3
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/setup.py +4 -2
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/client/api_client.py +8 -8
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/client/converter.py +16 -16
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons.egg-info/PKG-INFO +12 -3
- testit_python_commons-3.5.0/src/testit_python_commons.egg-info/requires.txt +2 -0
- testit_python_commons-3.4.0/src/testit_python_commons.egg-info/requires.txt +0 -2
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/README.md +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/setup.cfg +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/app_properties.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.0
|
|
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,16 @@ 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==5.
|
|
19
|
+
Requires-Dist: testit-api-client==5.3.0
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: summary
|
|
20
29
|
|
|
21
30
|
# How to enable debug logging?
|
|
22
31
|
1. Add in **connection_config.ini** file from the root directory of the project:
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
from setuptools import find_packages, setup
|
|
2
2
|
|
|
3
|
+
VERSION = "3.5.0"
|
|
4
|
+
|
|
3
5
|
setup(
|
|
4
6
|
name='testit-python-commons',
|
|
5
|
-
version=
|
|
7
|
+
version=VERSION,
|
|
6
8
|
description='Python commons for Test IT',
|
|
7
9
|
long_description=open('README.md', "r").read(),
|
|
8
10
|
long_description_content_type="text/markdown",
|
|
@@ -23,5 +25,5 @@ setup(
|
|
|
23
25
|
py_modules=['testit', 'testit_python_commons'],
|
|
24
26
|
packages=find_packages(where='src'),
|
|
25
27
|
package_dir={'': 'src'},
|
|
26
|
-
install_requires=['pluggy', 'testit-api-client==5.
|
|
28
|
+
install_requires=['pluggy', 'testit-api-client==5.3.0']
|
|
27
29
|
)
|
|
@@ -6,12 +6,12 @@ from datetime import datetime
|
|
|
6
6
|
from testit_api_client import ApiClient, Configuration
|
|
7
7
|
from testit_api_client.api import AttachmentsApi, AutoTestsApi, TestRunsApi, TestResultsApi, WorkItemsApi
|
|
8
8
|
from testit_api_client.models import (
|
|
9
|
-
|
|
9
|
+
AutoTestApiResult,
|
|
10
10
|
AutoTestPostModel,
|
|
11
11
|
AutoTestPutModel,
|
|
12
12
|
AttachmentPutModel,
|
|
13
13
|
AutoTestResultsForTestRunModel,
|
|
14
|
-
|
|
14
|
+
TestResultResponse,
|
|
15
15
|
WorkItemIdModel,
|
|
16
16
|
WorkItemIdentifierModel
|
|
17
17
|
)
|
|
@@ -66,7 +66,7 @@ class ApiClientWorker:
|
|
|
66
66
|
test_run_name
|
|
67
67
|
)
|
|
68
68
|
|
|
69
|
-
response = self.__test_run_api.create_empty(
|
|
69
|
+
response = self.__test_run_api.create_empty(create_empty_test_run_api_model=model)
|
|
70
70
|
|
|
71
71
|
return Converter.get_id_from_create_test_run_response(response)
|
|
72
72
|
|
|
@@ -88,7 +88,7 @@ class ApiClientWorker:
|
|
|
88
88
|
self.__config.get_project_id(),
|
|
89
89
|
test_result.get_external_id())
|
|
90
90
|
|
|
91
|
-
autotests = self.__autotest_api.api_v2_auto_tests_search_post(
|
|
91
|
+
autotests = self.__autotest_api.api_v2_auto_tests_search_post(auto_test_search_api_model=model)
|
|
92
92
|
|
|
93
93
|
if autotests:
|
|
94
94
|
self.__update_test(test_result, autotests[0])
|
|
@@ -172,7 +172,7 @@ class ApiClientWorker:
|
|
|
172
172
|
def __prepare_to_update_autotest(
|
|
173
173
|
self,
|
|
174
174
|
test_result: TestResult,
|
|
175
|
-
autotest:
|
|
175
|
+
autotest: AutoTestApiResult) -> AutoTestPutModel:
|
|
176
176
|
logging.debug('Preparing to update the auto test ', test_result.get_external_id())
|
|
177
177
|
|
|
178
178
|
model = Converter.test_result_to_autotest_put_model(
|
|
@@ -249,7 +249,7 @@ class ApiClientWorker:
|
|
|
249
249
|
return work_item_uuids
|
|
250
250
|
|
|
251
251
|
@adapter_logger
|
|
252
|
-
def __get_work_item_uuid_by_work_item_id(self, work_item_id: str) -> str
|
|
252
|
+
def __get_work_item_uuid_by_work_item_id(self, work_item_id: str) -> str or None:
|
|
253
253
|
logging.debug('Getting workitem by id ' + work_item_id)
|
|
254
254
|
|
|
255
255
|
try:
|
|
@@ -304,7 +304,7 @@ class ApiClientWorker:
|
|
|
304
304
|
logging.debug(f'Autotests were created')
|
|
305
305
|
|
|
306
306
|
@adapter_logger
|
|
307
|
-
def __update_test(self, test_result: TestResult, autotest:
|
|
307
|
+
def __update_test(self, test_result: TestResult, autotest: AutoTestApiResult):
|
|
308
308
|
logging.debug(f'Autotest "{test_result.get_autotest_name()}" was found')
|
|
309
309
|
|
|
310
310
|
model = self.__prepare_to_update_autotest(test_result, autotest)
|
|
@@ -363,7 +363,7 @@ class ApiClientWorker:
|
|
|
363
363
|
auto_test_results_for_test_run_model=test_results)
|
|
364
364
|
|
|
365
365
|
@adapter_logger
|
|
366
|
-
def get_test_result_by_id(self, test_result_id: str) ->
|
|
366
|
+
def get_test_result_by_id(self, test_result_id: str) -> TestResultResponse:
|
|
367
367
|
return self.__test_results_api.api_v2_test_results_id_get(id=test_result_id)
|
|
368
368
|
|
|
369
369
|
@adapter_logger
|
|
@@ -11,15 +11,15 @@ from testit_api_client.models import (
|
|
|
11
11
|
LinkPostModel,
|
|
12
12
|
LinkPutModel,
|
|
13
13
|
LinkType,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
CreateEmptyTestRunApiModel,
|
|
15
|
+
TestRunV2ApiResult,
|
|
16
|
+
AutoTestFilterApiModel,
|
|
17
|
+
AutoTestSearchIncludeApiModel,
|
|
18
|
+
AutoTestSearchApiModel,
|
|
19
19
|
TestResultUpdateV2Request,
|
|
20
|
-
|
|
20
|
+
TestResultResponse,
|
|
21
21
|
TestResultV2GetModel,
|
|
22
|
-
|
|
22
|
+
AttachmentApiResult,
|
|
23
23
|
AttachmentUpdateRequest
|
|
24
24
|
)
|
|
25
25
|
|
|
@@ -34,19 +34,19 @@ class Converter:
|
|
|
34
34
|
@classmethod
|
|
35
35
|
@adapter_logger
|
|
36
36
|
def test_run_to_test_run_short_model(cls, project_id, name):
|
|
37
|
-
return
|
|
37
|
+
return CreateEmptyTestRunApiModel(
|
|
38
38
|
project_id=project_id,
|
|
39
39
|
name=name
|
|
40
40
|
)
|
|
41
41
|
|
|
42
42
|
@classmethod
|
|
43
43
|
@adapter_logger
|
|
44
|
-
def get_id_from_create_test_run_response(cls, response:
|
|
44
|
+
def get_id_from_create_test_run_response(cls, response: TestRunV2ApiResult):
|
|
45
45
|
return response.id
|
|
46
46
|
|
|
47
47
|
@classmethod
|
|
48
48
|
@adapter_logger
|
|
49
|
-
def get_resolved_autotests_from_get_test_run_response(cls, response:
|
|
49
|
+
def get_resolved_autotests_from_get_test_run_response(cls, response: TestRunV2ApiResult, configuration: str):
|
|
50
50
|
autotests = response.test_results
|
|
51
51
|
|
|
52
52
|
return cls.__get_resolved_autotests(autotests, configuration)
|
|
@@ -54,16 +54,16 @@ class Converter:
|
|
|
54
54
|
@classmethod
|
|
55
55
|
@adapter_logger
|
|
56
56
|
def project_id_and_external_id_to_auto_tests_search_post_request(cls, project_id: str, external_id: str):
|
|
57
|
-
autotests_filter =
|
|
57
|
+
autotests_filter = AutoTestFilterApiModel(
|
|
58
58
|
project_ids=[project_id],
|
|
59
59
|
external_ids=[external_id],
|
|
60
60
|
is_deleted=False)
|
|
61
|
-
autotests_includes =
|
|
61
|
+
autotests_includes = AutoTestSearchIncludeApiModel(
|
|
62
62
|
include_steps=False,
|
|
63
63
|
include_links=False,
|
|
64
64
|
include_labels=False)
|
|
65
65
|
|
|
66
|
-
return
|
|
66
|
+
return AutoTestSearchApiModel(filter=autotests_filter, includes=autotests_includes)
|
|
67
67
|
|
|
68
68
|
@staticmethod
|
|
69
69
|
@adapter_logger
|
|
@@ -179,7 +179,7 @@ class Converter:
|
|
|
179
179
|
@adapter_logger
|
|
180
180
|
def convert_test_result_model_to_test_results_id_put_request(
|
|
181
181
|
cls,
|
|
182
|
-
test_result:
|
|
182
|
+
test_result: TestResultResponse) -> TestResultUpdateV2Request:
|
|
183
183
|
return TestResultUpdateV2Request(
|
|
184
184
|
failure_class_ids=test_result.failure_class_ids,
|
|
185
185
|
outcome=test_result.outcome,
|
|
@@ -275,7 +275,7 @@ class Converter:
|
|
|
275
275
|
@classmethod
|
|
276
276
|
@adapter_logger
|
|
277
277
|
def attachment_models_to_attachment_put_models(
|
|
278
|
-
cls, attachments: typing.List[
|
|
278
|
+
cls, attachments: typing.List[AttachmentApiResult]) -> typing.List[AttachmentUpdateRequest]:
|
|
279
279
|
put_model_attachments = []
|
|
280
280
|
|
|
281
281
|
for attachment in attachments:
|
|
@@ -287,7 +287,7 @@ class Converter:
|
|
|
287
287
|
|
|
288
288
|
@staticmethod
|
|
289
289
|
@adapter_logger
|
|
290
|
-
def attachment_model_to_attachment_put_model(attachment:
|
|
290
|
+
def attachment_model_to_attachment_put_model(attachment: AttachmentApiResult) -> AttachmentUpdateRequest:
|
|
291
291
|
return AttachmentUpdateRequest(id=attachment.id)
|
|
292
292
|
|
|
293
293
|
@classmethod
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: testit-python-commons
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.5.0
|
|
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,16 @@ 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==5.
|
|
19
|
+
Requires-Dist: testit-api-client==5.3.0
|
|
20
|
+
Dynamic: author
|
|
21
|
+
Dynamic: author-email
|
|
22
|
+
Dynamic: classifier
|
|
23
|
+
Dynamic: description
|
|
24
|
+
Dynamic: description-content-type
|
|
25
|
+
Dynamic: home-page
|
|
26
|
+
Dynamic: license
|
|
27
|
+
Dynamic: requires-dist
|
|
28
|
+
Dynamic: summary
|
|
20
29
|
|
|
21
30
|
# How to enable debug logging?
|
|
22
31
|
1. Add in **connection_config.ini** file from the root directory of the project:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/decorators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/models/link.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
|
{testit_python_commons-3.4.0 → testit_python_commons-3.5.0}/src/testit_python_commons/step.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|