forked from tangger/lerobot
mock)
This commit is contained in:
@@ -59,18 +59,18 @@ def make_motors_bus(motor_type: str, **kwargs) -> MotorsBus:
|
|||||||
|
|
||||||
|
|
||||||
# TODO(rcadene): implement mocked version of this test
|
# 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
|
@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
|
from lerobot.common.robot_devices.motors.dynamixel import find_port
|
||||||
|
|
||||||
find_port()
|
find_port()
|
||||||
|
|
||||||
|
|
||||||
# TODO(rcadene): implement mocked version of this test
|
# 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
|
@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...")
|
input("Are you sure you want to re-configure the motors? Press enter to continue...")
|
||||||
# This test expect the configuration was already correct.
|
# This test expect the configuration was already correct.
|
||||||
motors_bus = make_motors_bus(motor_type)
|
motors_bus = make_motors_bus(motor_type)
|
||||||
|
|||||||
Reference in New Issue
Block a user