Skip to content

Commit

Permalink
* Ran ./scripts/format.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
swan-amazon committed Dec 16, 2024
1 parent 13c6737 commit 3291de1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
3 changes: 1 addition & 2 deletions app/user_prompt_support/uploaded_file_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,12 @@ async def generate_command_arguments(

if dut_config.enhanced_setup_flow:
arguments.append(f"--require-tc-acknowledgements 1")

Check failure on line 59 in test_collections/matter/sdk_tests/support/python_testing/models/utils.py

View workflow job for this annotation

GitHub Actions / Flake8

test_collections/matter/sdk_tests/support/python_testing/models/utils.py#L59

F-string is missing placeholders (F541)
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}")
Expand Down

0 comments on commit 3291de1

Please sign in to comment.