Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Strengthen bus_servo warning assertion in tests
Agent-Logs-Url: https://github.com/makerforgetech/modular-biped/sessions/4eafc430-617c-4c05-a2bd-ea0bc585fcc3

Co-authored-by: danic85 <6583012+danic85@users.noreply.github.com>
  • Loading branch information
Copilot and danic85 authored Apr 20, 2026
commit b33eda1671a91af1cd896cc229b2143c78efdc5f
5 changes: 4 additions & 1 deletion src/modules/actuators/bus_servo/tests/test_bus_servo.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def test_is_moving_true_when_mismatch_to_target(self):
servo.log = MagicMock()

self.assertTrue(servo.is_moving())
servo.log.assert_called_once()
servo.log.assert_called_once_with(
"Servo test is not reporting as moving but position 3047 does not match target position 3396",
level='warning'
)

def test_is_moving_false_when_within_tolerance(self):
servo = Servo(name='test', id=1, range=[0, 4095], model='ST3215')
Expand Down