From 83c7e04ab53f76a54cbc9935323888203c5c50d3 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Fri, 21 Aug 2026 17:59:59 +0300 Subject: [PATCH 1/2] feat: cloud support --- .../model/custom_attribute_api_result.py | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py index cbe557d..1213935 100644 --- a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py +++ b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py @@ -90,9 +90,9 @@ def openapi_types(): 'is_enabled': (bool,), # noqa: E501 'is_required': (bool,), # noqa: E501 'is_global': (bool,), # noqa: E501 - 'is_read_only': (bool,), # noqa: E501 - 'is_system': (bool,), # noqa: E501 - 'targets': ([str],), # noqa: E501 + 'is_read_only': (bool, none_type,), # noqa: E501 + 'is_system': (bool, none_type,), # noqa: E501 + 'targets': ([str], none_type,), # noqa: E501 'code': (str, none_type,), # noqa: E501 } @@ -140,6 +140,9 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: + is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 + is_system (bool): Indicates if the attribute is system. [optional] # noqa: E501 + targets ([str]): Collection of the attribute targets. [optional] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -178,6 +181,9 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + is_read_only = kwargs.pop('is_read_only', False) + is_system = kwargs.pop('is_system', False) + targets = kwargs.pop('targets', None) self = super(OpenApiModel, cls).__new__(cls) @@ -250,6 +256,9 @@ def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: + is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 + is_system (bool): Indicates if the attribute is system. [optional] # noqa: E501 + targets ([str]): Collection of the attribute targets. [optional] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -288,6 +297,9 @@ def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + is_read_only = kwargs.pop('is_read_only', False) + is_system = kwargs.pop('is_system', False) + targets = kwargs.pop('targets', None) if args: for arg in args: From 5e56cc2ea4cc4b9f74be65d2843b0ca9ebcdc507 Mon Sep 17 00:00:00 2001 From: Dmitry Ermakovich Date: Fri, 21 Aug 2026 18:19:24 +0300 Subject: [PATCH 2/2] chore: fix --- .../adapters_api/model/custom_attribute_api_result.py | 10 ++-------- .../src/testit_python_commons/client/converter.py | 2 ++ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py index 1213935..e066ad2 100644 --- a/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py +++ b/testit-python-commons/src/adapters_api/model/custom_attribute_api_result.py @@ -123,7 +123,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_required, is_global, is_read_only, is_system, targets, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_required, is_global, *args, **kwargs): # noqa: E501 """CustomAttributeApiResult - a model defined in OpenAPI Args: @@ -135,9 +135,6 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ is_enabled (bool): Indicates if the attribute is enabled is_required (bool): Indicates if the attribute value is mandatory to specify is_global (bool): Indicates if the attribute is available across all projects - is_read_only (bool): Indicates if the attribute is read-only - is_system (bool): Indicates if the attribute is system - targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 @@ -239,7 +236,7 @@ def _from_openapi_data(cls, id, options, type, is_deleted, name, is_enabled, is_ ]) @convert_js_args_to_python_args - def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_global, is_read_only, is_system, targets, *args, **kwargs): # noqa: E501 + def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_global, *args, **kwargs): # noqa: E501 """CustomAttributeApiResult - a model defined in OpenAPI Args: @@ -251,9 +248,6 @@ def __init__(self, id, options, type, is_deleted, name, is_enabled, is_required, is_enabled (bool): Indicates if the attribute is enabled is_required (bool): Indicates if the attribute value is mandatory to specify is_global (bool): Indicates if the attribute is available across all projects - is_read_only (bool): Indicates if the attribute is read-only - is_system (bool): Indicates if the attribute is system - targets ([str]): Collection of the attribute targets Defines where the attribute can be used (e.g., TestCases, AutoTestCases, TestPlans) Keyword Args: is_read_only (bool): Indicates if the attribute is read-only. [optional] # noqa: E501 diff --git a/testit-python-commons/src/testit_python_commons/client/converter.py b/testit-python-commons/src/testit_python_commons/client/converter.py index 5b3d2d7..b7d017c 100644 --- a/testit-python-commons/src/testit_python_commons/client/converter.py +++ b/testit-python-commons/src/testit_python_commons/client/converter.py @@ -305,6 +305,7 @@ def test_result_to_autotest_put_model( external_id=test_result.get_external_id(), project_id=project_id, name=test_result.get_autotest_name(), + reset_layer=False, steps=cls.step_results_to_autotest_steps_model( test_result.get_step_results()), setup=cls.step_results_to_autotest_steps_model( @@ -331,6 +332,7 @@ def test_result_to_update_autotest_request( external_id=test_result.get_external_id(), project_id=project_id, name=test_result.get_autotest_name(), + reset_layer=False, steps=cls.step_results_to_autotest_steps_model( test_result.get_step_results()), setup=cls.step_results_to_autotest_steps_model(