forked from tangger/lerobot
mock_motor instead of require_mock_motor
This commit is contained in:
@@ -32,7 +32,7 @@ import pytest
|
||||
|
||||
from lerobot import available_motors
|
||||
from lerobot.common.robot_devices.utils import RobotDeviceAlreadyConnectedError, RobotDeviceNotConnectedError
|
||||
from tests.utils import make_motors_bus, mock_builtins_input, require_mock_motor, require_motor
|
||||
from tests.utils import make_motors_bus, mock_builtins_input, mock_motor, require_mock_motor, require_motor
|
||||
|
||||
|
||||
def _test_configure_motors_all_ids_1(motor_type):
|
||||
@@ -112,8 +112,8 @@ def _test_motors_bus(motor_type):
|
||||
|
||||
|
||||
@pytest.mark.parametrize("motor_type", available_motors)
|
||||
@require_mock_motor
|
||||
def test_find_port_mock(monkeypatch, motor_type):
|
||||
mock_motor(monkeypatch, motor_type)
|
||||
from lerobot.common.robot_devices.motors.dynamixel import find_port
|
||||
|
||||
# To run find_port without user input
|
||||
|
||||
Reference in New Issue
Block a user