Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Feb 9, 2024
1 parent 414f569 commit 3324fb3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/src/opentrons/protocol_engine/state/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def handle_action(self, action: Action) -> None: # noqa: C901
error=action.error,
)
prev_entry = self._state.commands_by_id[action.command_id]
self._state.commands_by_id[action.command_id] = CommandEntry(
failed_command_entry = CommandEntry(
index=prev_entry.index,
# TODO(mc, 2022-06-06): add new "cancelled" status or similar
# and don't set `completedAt` in commands other than the
Expand All @@ -286,8 +286,8 @@ def handle_action(self, action: Action) -> None: # noqa: C901
}
),
)

self._state.failed_command = prev_entry
self._state.commands_by_id[action.command_id] = failed_command_entry
self._state.failed_command = failed_command_entry
if prev_entry.command.intent == CommandIntent.SETUP:
other_command_ids_to_fail = [
*[i for i in self._state.queued_setup_command_ids],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ def test_get_slice_default_cursor_no_current_failed_command() -> None:
subject = get_command_view(
commands=[command_1, command_2, command_3, command_4],
run_result=RunResult.FAILED,
failed_command=CommandEntry(index=2, command=command_3),
)

result = subject.get_slice(cursor=None, length=3)
Expand Down
3 changes: 3 additions & 0 deletions notify-server/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta:__legacy__"

0 comments on commit 3324fb3

Please sign in to comment.