testit-python-commons 3.9.1.post540__tar.gz → 3.9.2.post540__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.9.1.post540 → testit_python_commons-3.9.2.post540}/PKG-INFO +1 -1
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/setup.py +1 -1
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/converter.py +21 -2
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/README.md +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/setup.cfg +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/app_properties.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/api_client.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/client_configuration.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/helpers/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/models/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/decorators.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/dynamic_methods.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/adapter_mode.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/fixture.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/link.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/link_type.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/outcome_type.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/step_result.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/test_result.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/adapter_manager.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/fixture_manager.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/fixture_storage.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/logger.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/plugin_manager.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/retry.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/step_manager.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/step_result_storage.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/services/utils.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/step.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/utils/__init__.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons.egg-info/requires.txt +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/src/testit_python_commons.egg-info/top_level.txt +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/tests/test_app_properties.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/tests/test_dynamic_methods.py +0 -0
- {testit_python_commons-3.9.1.post540 → testit_python_commons-3.9.2.post540}/tests/test_html_escape_utils.py +0 -0
|
@@ -24,7 +24,8 @@ from testit_api_client.models import (
|
|
|
24
24
|
TestResultResponse,
|
|
25
25
|
TestResultV2GetModel,
|
|
26
26
|
AttachmentApiResult,
|
|
27
|
-
AttachmentUpdateRequest
|
|
27
|
+
AttachmentUpdateRequest,
|
|
28
|
+
AttachmentPutModel,
|
|
28
29
|
)
|
|
29
30
|
|
|
30
31
|
from testit_python_commons.models.link import Link
|
|
@@ -365,6 +366,24 @@ class Converter:
|
|
|
365
366
|
def attachment_model_to_attachment_put_model(attachment: AttachmentApiResult) -> AttachmentUpdateRequest:
|
|
366
367
|
return AttachmentUpdateRequest(id=attachment.id)
|
|
367
368
|
|
|
369
|
+
@classmethod
|
|
370
|
+
@adapter_logger
|
|
371
|
+
def build_attachment_update_requests(
|
|
372
|
+
cls, attachments: List[AttachmentPutModel]) -> List[AttachmentUpdateRequest]:
|
|
373
|
+
put_model_attachments = []
|
|
374
|
+
|
|
375
|
+
for attachment in attachments:
|
|
376
|
+
put_model_attachments.append(
|
|
377
|
+
cls.build_attachment_update_request(attachment)
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
return put_model_attachments
|
|
381
|
+
|
|
382
|
+
@staticmethod
|
|
383
|
+
@adapter_logger
|
|
384
|
+
def build_attachment_update_request(attachment: AttachmentPutModel) -> AttachmentUpdateRequest:
|
|
385
|
+
return AttachmentUpdateRequest(id=attachment.id)
|
|
386
|
+
|
|
368
387
|
@classmethod
|
|
369
388
|
# @adapter_logger
|
|
370
389
|
def step_results_to_autotest_steps_model(
|
|
@@ -443,7 +462,7 @@ class Converter:
|
|
|
443
462
|
description=step_result.get_description(),
|
|
444
463
|
duration=step_result.get_duration(),
|
|
445
464
|
parameters=step_result.get_parameters(),
|
|
446
|
-
attachments=step_result.get_attachments(),
|
|
465
|
+
attachments=cls.build_attachment_update_requests(step_result.get_attachments()),
|
|
447
466
|
started_on=step_result.get_started_on(),
|
|
448
467
|
completed_on=step_result.get_completed_on(),
|
|
449
468
|
step_results=cls.step_results_to_auto_test_step_result_update_request(
|
|
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
|
|
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
|