testit-python-commons 3.10.8.post550__tar.gz → 3.10.9.post550__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 (50) hide show
  1. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/PKG-INFO +1 -1
  2. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/setup.py +1 -1
  3. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/converter.py +20 -1
  4. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons.egg-info/PKG-INFO +1 -1
  5. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/README.md +0 -0
  6. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/setup.cfg +0 -0
  7. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit.py +0 -0
  8. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/__init__.py +0 -0
  9. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/app_properties.py +0 -0
  10. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/__init__.py +0 -0
  11. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/api_client.py +0 -0
  12. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/client_configuration.py +0 -0
  13. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/helpers/__init__.py +0 -0
  14. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/helpers/bulk_autotest_helper.py +0 -0
  15. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/helpers/threads_manager.py +0 -0
  16. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/models/__init__.py +0 -0
  17. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/models/threads_for_create_and_result.py +0 -0
  18. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/client/models/threads_for_update_and_result.py +0 -0
  19. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/decorators.py +0 -0
  20. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/dynamic_methods.py +0 -0
  21. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/__init__.py +0 -0
  22. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/adapter_mode.py +0 -0
  23. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/fixture.py +0 -0
  24. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/link.py +0 -0
  25. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/link_type.py +0 -0
  26. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/outcome_type.py +0 -0
  27. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/step_result.py +0 -0
  28. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/test_result.py +0 -0
  29. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +0 -0
  30. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/__init__.py +0 -0
  31. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/adapter_manager.py +0 -0
  32. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/adapter_manager_configuration.py +0 -0
  33. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/fixture_manager.py +0 -0
  34. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/fixture_storage.py +0 -0
  35. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/logger.py +0 -0
  36. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/plugin_manager.py +0 -0
  37. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/retry.py +0 -0
  38. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/step_manager.py +0 -0
  39. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/step_result_storage.py +0 -0
  40. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/services/utils.py +0 -0
  41. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/step.py +0 -0
  42. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/utils/__init__.py +0 -0
  43. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons/utils/html_escape_utils.py +0 -0
  44. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons.egg-info/SOURCES.txt +0 -0
  45. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons.egg-info/dependency_links.txt +0 -0
  46. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons.egg-info/requires.txt +0 -0
  47. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/src/testit_python_commons.egg-info/top_level.txt +0 -0
  48. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/tests/test_app_properties.py +0 -0
  49. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/tests/test_dynamic_methods.py +0 -0
  50. {testit_python_commons-3.10.8.post550 → testit_python_commons-3.10.9.post550}/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: 3.10.8.post550
3
+ Version: 3.10.9.post550
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 = "3.10.8.post550"
3
+ VERSION = "3.10.9.post550"
4
4
 
5
5
  setup(
6
6
  name='testit-python-commons',
@@ -26,6 +26,7 @@ from testit_api_client.models import (
26
26
  TestResultResponse,
27
27
  AttachmentApiResult,
28
28
  AttachmentUpdateRequest,
29
+ AttachmentPutModel,
29
30
  UpdateEmptyRequest,
30
31
  LinkApiResult,
31
32
  UpdateLinkApiModel,
@@ -420,6 +421,24 @@ class Converter:
420
421
  def attachment_model_to_attachment_put_model(attachment: AttachmentApiResult) -> AttachmentUpdateRequest:
421
422
  return AttachmentUpdateRequest(id=attachment.id)
422
423
 
424
+ @classmethod
425
+ @adapter_logger
426
+ def build_attachment_update_requests(
427
+ cls, attachments: List[AttachmentPutModel]) -> List[AttachmentUpdateRequest]:
428
+ put_model_attachments = []
429
+
430
+ for attachment in attachments:
431
+ put_model_attachments.append(
432
+ cls.build_attachment_update_request(attachment)
433
+ )
434
+
435
+ return put_model_attachments
436
+
437
+ @staticmethod
438
+ @adapter_logger
439
+ def build_attachment_update_request(attachment: AttachmentPutModel) -> AttachmentUpdateRequest:
440
+ return AttachmentUpdateRequest(id=attachment.id)
441
+
423
442
  @classmethod
424
443
  # @adapter_logger
425
444
  def step_results_to_autotest_steps_model(
@@ -498,7 +517,7 @@ class Converter:
498
517
  description=step_result.get_description(),
499
518
  duration=step_result.get_duration(),
500
519
  parameters=step_result.get_parameters(),
501
- attachments=step_result.get_attachments(),
520
+ attachments=cls.build_attachment_update_requests(step_result.get_attachments()),
502
521
  started_on=step_result.get_started_on(),
503
522
  completed_on=step_result.get_completed_on(),
504
523
  step_results=cls.step_results_to_auto_test_step_result_update_request(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testit-python-commons
3
- Version: 3.10.8.post550
3
+ Version: 3.10.9.post550
4
4
  Summary: Python commons for Test IT
5
5
  Home-page: https://github.com/testit-tms/adapters-python/
6
6
  Author: Integration team