This commit is contained in:
Remi Cadene
2024-09-25 12:29:53 +02:00
parent 558420115e
commit 6377d2a96c

View File

@@ -59,18 +59,18 @@ def make_motors_bus(motor_type: str, **kwargs) -> MotorsBus:
# TODO(rcadene): implement mocked version of this test
@pytest.mark.parametrize("motor_type", available_motors)
@pytest.mark.parametrize("motor_type, mock", [(m, False) for m in available_motors])
@require_motor
def test_find_port(request, motor_type, mock=False):
def test_find_port(request, motor_type, mock):
from lerobot.common.robot_devices.motors.dynamixel import find_port
find_port()
# TODO(rcadene): implement mocked version of this test
@pytest.mark.parametrize("motor_type", available_motors)
@pytest.mark.parametrize("motor_type, mock", [(m, False) for m in available_motors])
@require_motor
def test_configure_motors_all_ids_1(request, motor_type, mock=False):
def test_configure_motors_all_ids_1(request, motor_type, mock):
input("Are you sure you want to re-configure the motors? Press enter to continue...")
# This test expect the configuration was already correct.
motors_bus = make_motors_bus(motor_type)