Skip to content

Commit

Permalink
fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
amit lissack committed Mar 17, 2021
1 parent 72148b2 commit 7759b0f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from mock import AsyncMock
from opentrons.drivers.rpi_drivers.types import USBPort
from opentrons.hardware_control.emulation.app import MAGDECK_PORT
from opentrons.hardware_control.modules import MagDeck

Expand All @@ -11,6 +12,7 @@ async def magdeck(loop: asyncio.BaseEventLoop, emulation_app) -> MagDeck:
td = await MagDeck.build(
port=f"socket://127.0.0.1:{MAGDECK_PORT}",
execution_manager=AsyncMock(),
usb_port=USBPort(name="", port_number=1, sub_names=[], device_path="", hub=1),
loop=loop
)
yield td
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import pytest
from mock import AsyncMock
from opentrons.drivers.rpi_drivers.types import USBPort
from opentrons.hardware_control.emulation.app import TEMPDECK_PORT
from opentrons.hardware_control.modules import TempDeck

Expand All @@ -11,6 +12,8 @@ async def tempdeck(loop: asyncio.BaseEventLoop, emulation_app) -> TempDeck:
td = await TempDeck.build(
port=f"socket://127.0.0.1:{TEMPDECK_PORT}",
execution_manager=AsyncMock(),
usb_port=USBPort(name="", port_number=1, sub_names=[], device_path="",
hub=1),
loop=loop
)
yield td
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import pytest
from mock import AsyncMock, patch
from opentrons.config import IS_WIN
from opentrons.drivers.rpi_drivers.types import USBPort
from opentrons.drivers.thermocycler.driver import TCPoller
from opentrons.hardware_control.emulation.app import THERMOCYCLER_PORT
from opentrons.hardware_control.modules import Thermocycler
Expand All @@ -25,6 +26,8 @@ async def thermocycler(
td = await Thermocycler.build(
port=f"socket://127.0.0.1:{THERMOCYCLER_PORT}",
execution_manager=AsyncMock(),
usb_port=USBPort(name="", port_number=1, sub_names=[], device_path="",
hub=1),
loop=loop
)
yield td
Expand Down

0 comments on commit 7759b0f

Please sign in to comment.