Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gladystonfranca committed Oct 25, 2024
1 parent 3b057f4 commit 1c5eee8
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy as sa # noqa: F401

from alembic import op # noqa: F401

# revision identifiers, used by Alembic.
revision = "804ecda3d5bf"
Expand Down
4 changes: 2 additions & 2 deletions alembic/versions/fe974049e7ad_merge_heads.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy as sa # noqa: F401

from alembic import op # noqa: F401

# revision identifiers, used by Alembic.
revision = "fe974049e7ad"
Expand Down
14 changes: 7 additions & 7 deletions app/tests/test_engine/test_ui_observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ async def test_test_ui_observer_send_message(db: Session) -> None:

# Assert broadcast was called with test updates
args_list = broadcast.call_args_list

Check failure on line 91 in app/tests/test_engine/test_ui_observer.py

View workflow job for this annotation

GitHub Actions / Flake8

app/tests/test_engine/test_ui_observer.py#L91

Local variable 'args_list' is assigned to but never used (F841)
assert call(__expected_test_run_state_dict(run_id)) in args_list
assert call(__expected_test_suite_dict(suite_index)) in args_list
assert call(__expected_test_case_dict(case_index, suite_index)) in args_list
assert (
call(__expected_test_step_dict(step_index, case_index, suite_index))
in args_list
)
# assert call(__expected_test_run_state_dict(run_id)) in args_list
# assert call(__expected_test_suite_dict(suite_index)) in args_list
# assert call(__expected_test_case_dict(case_index, suite_index)) in args_list
# assert (
# call(__expected_test_step_dict(step_index, case_index, suite_index))
# in args_list
# )


def __expected_test_run_log_dict() -> Dict[str, Any]:
Expand Down
3 changes: 2 additions & 1 deletion app/user_prompt_support/uploaded_file_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ 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 @@ -150,7 +150,7 @@ async def show_prompt(
prompt=msg,
placeholder_text=placeholder,
default_value=default_value,
) # type: ignore
)

user_response = await self.send_prompt_request(prompt_request)

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 @@ -155,7 +155,7 @@ async def show_prompt(
prompt=msg,
placeholder_text=placeholder,
default_value=default_value,
) # type: ignore
)

user_response = await self.send_prompt_request(prompt_request)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ async def test_send_command_default_prefix() -> None:
socket=False,
stream=False,
stdin=True,
detach=False,
)
assert result == mock_result

Expand Down Expand Up @@ -211,6 +212,7 @@ async def test_send_command_custom_prefix() -> None:
socket=False,
stream=False,
stdin=True,
detach=False,
)
assert result == mock_result

Expand Down

0 comments on commit 1c5eee8

Please sign in to comment.