From 3291de16ee7bf094f7b6a05c48bd54f77afe03b4 Mon Sep 17 00:00:00 2001 From: James Swan <122404367+swan-amazon@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:40:56 +0000 Subject: [PATCH] * Ran ./scripts/format.sh --- app/user_prompt_support/uploaded_file_support.py | 3 +-- .../sdk_tests/support/performance_tests/utils.py | 12 ++++++------ .../sdk_tests/support/python_testing/__init__.py | 6 +++--- .../sdk_tests/support/python_testing/models/utils.py | 8 ++++++-- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/app/user_prompt_support/uploaded_file_support.py b/app/user_prompt_support/uploaded_file_support.py index 1d17d183..efb6ed33 100644 --- a/app/user_prompt_support/uploaded_file_support.py +++ b/app/user_prompt_support/uploaded_file_support.py @@ -30,8 +30,7 @@ class UploadFile(Protocol): filename: Optional[str] @property - def content_type(self) -> Optional[str]: - ... + def content_type(self) -> Optional[str]: ... @runtime_checkable diff --git a/test_collections/matter/sdk_tests/support/performance_tests/utils.py b/test_collections/matter/sdk_tests/support/performance_tests/utils.py index 1759e694..6656c4bc 100644 --- a/test_collections/matter/sdk_tests/support/performance_tests/utils.py +++ b/test_collections/matter/sdk_tests/support/performance_tests/utils.py @@ -252,12 +252,12 @@ def generate_summary( summary_dict["test_summary_record"]["number_of_iterations_completed"] = len( durations ) - summary_dict["test_summary_record"][ - "number_of_iterations_passed" - ] = compute_count_state(execution_status, True) - summary_dict["test_summary_record"][ - "number_of_iterations_failed" - ] = compute_count_state(execution_status, False) + summary_dict["test_summary_record"]["number_of_iterations_passed"] = ( + compute_count_state(execution_status, True) + ) + summary_dict["test_summary_record"]["number_of_iterations_failed"] = ( + compute_count_state(execution_status, False) + ) summary_dict["test_summary_record"]["platform"] = "rpi" summary_dict["test_summary_record"]["commissioning_method"] = commissioning_method summary_dict["test_summary_record"]["list_of_iterations_failed"] = [] diff --git a/test_collections/matter/sdk_tests/support/python_testing/__init__.py b/test_collections/matter/sdk_tests/support/python_testing/__init__.py index 6ffac78f..85b5ca8e 100644 --- a/test_collections/matter/sdk_tests/support/python_testing/__init__.py +++ b/test_collections/matter/sdk_tests/support/python_testing/__init__.py @@ -34,6 +34,6 @@ sdk_mandatory_python_test_collection() ) - custom_python_collection: Optional[ - TestCollectionDeclaration - ] = custom_python_test_collection() + custom_python_collection: Optional[TestCollectionDeclaration] = ( + custom_python_test_collection() + ) diff --git a/test_collections/matter/sdk_tests/support/python_testing/models/utils.py b/test_collections/matter/sdk_tests/support/python_testing/models/utils.py index 8b83a816..0bade6e1 100644 --- a/test_collections/matter/sdk_tests/support/python_testing/models/utils.py +++ b/test_collections/matter/sdk_tests/support/python_testing/models/utils.py @@ -57,8 +57,12 @@ async def generate_command_arguments( if dut_config.enhanced_setup_flow: arguments.append(f"--require-tc-acknowledgements 1") - arguments.append(f"--tc-acknowledgements {dut_config.enhanced_setup_flow.tc_user_response}") - arguments.append(f"--tc-acknowledgements-version {dut_config.enhanced_setup_flow.tc_version}") + arguments.append( + f"--tc-acknowledgements {dut_config.enhanced_setup_flow.tc_user_response}" + ) + arguments.append( + f"--tc-acknowledgements-version {dut_config.enhanced_setup_flow.tc_version}" + ) if omit_commissioning_method: arguments.append(f"--in-test-commissioning-method {pairing_mode}")