From 3362b665e6a31a4ea719b82583d6d7371498cff1 Mon Sep 17 00:00:00 2001 From: Simon Alibert Date: Sat, 15 Mar 2025 21:44:01 +0100 Subject: [PATCH] Move test files --- tests/{motors => mocks}/mock_dynamixel_sdk.py | 3 +-- tests/{motors => mocks}/mock_scservo_sdk.py | 2 -- tests/motors/{test_motors.py => test_motors_bus.py} | 0 3 files changed, 1 insertion(+), 4 deletions(-) rename tests/{motors => mocks}/mock_dynamixel_sdk.py (98%) rename tests/{motors => mocks}/mock_scservo_sdk.py (98%) rename tests/motors/{test_motors.py => test_motors_bus.py} (100%) diff --git a/tests/motors/mock_dynamixel_sdk.py b/tests/mocks/mock_dynamixel_sdk.py similarity index 98% rename from tests/motors/mock_dynamixel_sdk.py rename to tests/mocks/mock_dynamixel_sdk.py index ee399f96d..a4d36bd90 100644 --- a/tests/motors/mock_dynamixel_sdk.py +++ b/tests/mocks/mock_dynamixel_sdk.py @@ -11,6 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + """Mocked classes and functions from dynamixel_sdk to allow for continuous integration and testing code logic that requires hardware and devices (e.g. robot arms, cameras) @@ -18,8 +19,6 @@ Warning: These mocked versions are minimalist. They do not exactly mock every be from the original classes and functions (e.g. return types might be None instead of boolean). """ -# from dynamixel_sdk import COMM_SUCCESS - DEFAULT_BAUDRATE = 9_600 COMM_SUCCESS = 0 # tx or rx packet communication success diff --git a/tests/motors/mock_scservo_sdk.py b/tests/mocks/mock_scservo_sdk.py similarity index 98% rename from tests/motors/mock_scservo_sdk.py rename to tests/mocks/mock_scservo_sdk.py index 37f6d0d56..5bbb758d2 100644 --- a/tests/motors/mock_scservo_sdk.py +++ b/tests/mocks/mock_scservo_sdk.py @@ -18,8 +18,6 @@ Warning: These mocked versions are minimalist. They do not exactly mock every be from the original classes and functions (e.g. return types might be None instead of boolean). """ -# from dynamixel_sdk import COMM_SUCCESS - DEFAULT_BAUDRATE = 1_000_000 COMM_SUCCESS = 0 # tx or rx packet communication success diff --git a/tests/motors/test_motors.py b/tests/motors/test_motors_bus.py similarity index 100% rename from tests/motors/test_motors.py rename to tests/motors/test_motors_bus.py