Move imports

This commit is contained in:
Simon Alibert 2025-03-15 23:43:26 +01:00
parent 8d659a6aa9
commit c85a9253e7
2 changed files with 2 additions and 8 deletions

View File

@ -3,6 +3,7 @@ from unittest.mock import patch
import pytest
from lerobot.common.motors.dynamixel import DynamixelMotorsBus
from tests.mocks import mock_dynamixel_sdk
@ -18,15 +19,11 @@ def test_patch_sdk():
def test_abc_implementation():
from lerobot.common.motors.dynamixel import DynamixelMotorsBus
# Instantiation should raise an error if the class doesn't implements abstract methods/properties
DynamixelMotorsBus(port="/dev/dummy-port", motors={"dummy": (1, "xl330-m077")})
def test_configure_motors_all_ids_1():
from lerobot.common.motors.dynamixel import DynamixelMotorsBus
# see X_SERIES_BAUDRATE_TABLE
smaller_baudrate = 9_600
smaller_baudrate_value = 0

View File

@ -3,6 +3,7 @@ from unittest.mock import patch
import pytest
from lerobot.common.motors.feetech import FeetechMotorsBus
from tests.mocks import mock_scservo_sdk
@ -18,15 +19,11 @@ def test_patch_sdk():
def test_abc_implementation():
from lerobot.common.motors.feetech import FeetechMotorsBus
# Instantiation should raise an error if the class doesn't implements abstract methods/properties
FeetechMotorsBus(port="/dev/dummy-port", motors={"dummy": (1, "sts3215")})
def test_configure_motors_all_ids_1():
from lerobot.common.motors.feetech import FeetechMotorsBus
# see SCS_SERIES_BAUDRATE_TABLE
smaller_baudrate = 19_200
smaller_baudrate_value = 7