Skip to content

Commit

Permalink
integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
amit lissack committed Apr 20, 2022
1 parent 7d51f60 commit b827a4a
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 10 deletions.
1 change: 0 additions & 1 deletion hardware/tests/firmware_integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

@pytest.fixture
async def driver(
loop: asyncio.BaseEventLoop,
) -> AsyncGenerator[AbstractCanDriver, None]:
"""Create CanDriver connected to OT-3 Emulator."""
settings = DriverSettings()
Expand Down
1 change: 0 additions & 1 deletion hardware/tests/firmware_integration/test_attached_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_attached_tools_request(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
) -> None:
Expand Down
4 changes: 1 addition & 3 deletions hardware/tests/firmware_integration/test_device_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_broadcast(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
) -> None:
Expand All @@ -44,14 +43,13 @@ async def _check() -> None:
if arbitration_id.parts.originating_node_id in nodes:
nodes.remove(arbitration_id.parts.originating_node_id)

t = loop.create_task(_check())
t = asyncio.get_running_loop().create_task(_check())
await asyncio.wait_for(t, 1)


@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_each_node(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
subsystem_node_id: NodeId,
Expand Down
1 change: 0 additions & 1 deletion hardware/tests/firmware_integration/test_eeprom.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_read_write(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_each_node(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
motor_node_id: NodeId,
Expand Down
1 change: 0 additions & 1 deletion hardware/tests/firmware_integration/test_motor_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_read_write(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
motor_node_id: NodeId,
Expand Down
2 changes: 0 additions & 2 deletions hardware/tests/firmware_integration/test_move_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def filter_func(arb: ArbitrationId) -> bool:
@pytest.mark.requires_emulator
@pytest.mark.can_filter_func.with_args(filter_func)
async def test_add_moves(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
motor_node_id: NodeId,
Expand Down Expand Up @@ -87,7 +86,6 @@ async def test_add_moves(

@pytest.mark.requires_emulator
async def test_move_integration(
loop: asyncio.BaseEventLoop,
can_messenger: CanMessenger,
can_messenger_queue: WaitableCallback,
all_motor_nodes: List[NodeId],
Expand Down

0 comments on commit b827a4a

Please sign in to comment.