Skip to content

Commit

Permalink
Test updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
SyntaxColoring committed Oct 3, 2024
1 parent dedbf48 commit 8a67e14
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions robot-server/tests/runs/test_run_orchestrator_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from opentrons_shared_data import get_shared_data_root
from opentrons_shared_data.robot.types import RobotType

from opentrons.protocol_engine.error_recovery_policy import never_recover
from opentrons.protocol_engine.errors.exceptions import EStopActivatedError
from opentrons.types import DeckSlotName
from opentrons.hardware_control import HardwareControlAPI, API
Expand Down Expand Up @@ -58,6 +59,7 @@ async def test_create_engine(decoy: Decoy, subject: RunOrchestratorStore) -> Non
result = await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
protocol=None,
deck_configuration=[],
notify_publishers=mock_notify_publishers,
Expand Down Expand Up @@ -85,6 +87,7 @@ async def test_create_engine_uses_robot_type(
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -106,6 +109,7 @@ async def test_create_engine_with_labware_offsets(
result = await subject.create(
run_id="run-id",
labware_offsets=[labware_offset],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -129,6 +133,7 @@ async def test_archives_state_if_engine_already_exists(
await subject.create(
run_id="run-id-1",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -138,6 +143,7 @@ async def test_archives_state_if_engine_already_exists(
await subject.create(
run_id="run-id-2",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -151,6 +157,7 @@ async def test_clear_engine(subject: RunOrchestratorStore) -> None:
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -172,6 +179,7 @@ async def test_clear_engine_not_stopped_or_idle(
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -187,6 +195,7 @@ async def test_clear_idle_engine(subject: RunOrchestratorStore) -> None:
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand Down Expand Up @@ -238,6 +247,7 @@ async def test_get_default_orchestrator_current_unstarted(
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -252,6 +262,7 @@ async def test_get_default_orchestrator_conflict(subject: RunOrchestratorStore)
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand All @@ -269,6 +280,7 @@ async def test_get_default_orchestrator_run_stopped(
await subject.create(
run_id="run-id",
labware_offsets=[],
initial_error_recovery_policy=never_recover,
deck_configuration=[],
protocol=None,
notify_publishers=mock_notify_publishers,
Expand Down

0 comments on commit 8a67e14

Please sign in to comment.