From ab3563b8cc854c40e64540ab6894f42c9f6ade81 Mon Sep 17 00:00:00 2001 From: WillB97 Date: Mon, 6 May 2024 09:05:05 +0100 Subject: [PATCH] Fix unit tests --- tests/test_servo_board.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_servo_board.py b/tests/test_servo_board.py index 8cbba0a..b4c6f5a 100644 --- a/tests/test_servo_board.py +++ b/tests/test_servo_board.py @@ -65,7 +65,6 @@ def test_servo_board_identify(servoboard_serial: MockServoBoard) -> None: assert servo_board.identify().asset_tag == "TEST456" -@pytest.mark.skip(reason="TODO update servo values") def test_servo_board(servoboard_serial: MockServoBoard) -> None: """ Test that the servo board functionality works. @@ -97,7 +96,6 @@ def test_servo_board(servoboard_serial: MockServoBoard) -> None: assert servo_board.voltage == 5.432 -@pytest.mark.skip(reason="TODO update servo values") def test_servo_board_servos(servoboard_serial: MockServoBoard) -> None: """ Test that the servo board servo functionality works. @@ -119,6 +117,7 @@ def test_servo_board_servos(servoboard_serial: MockServoBoard) -> None: ]) # Test that we can set the duty cycle limits servo_board.servos[0].set_duty_limits(1000, 1100) + servo_board.servos[1].set_duty_limits(1000, 2000) # Test that we can get the duty cycle limits assert servo_board.servos[0].get_duty_limits() == (1000, 1100)