Skip to content

Commit 926e9d7

Browse files
committed
Fix tests/api_tests to support attribute changes
- Removed encoder_polarity - Renamed stop_command to stop_action
1 parent d063959 commit 926e9d7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/api_tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def dummy(self):
6060
self.assertEqual(m.commands, ['run-forever', 'run-to-abs-pos', 'run-to-rel-pos', 'run-timed', 'run-direct', 'stop', 'reset'])
6161
self.assertEqual(m.duty_cycle, 0)
6262
self.assertEqual(m.duty_cycle_sp, 42)
63-
self.assertEqual(m.encoder_polarity, 'normal')
6463
self.assertEqual(m.polarity, 'normal')
6564
self.assertEqual(m.address, 'outA')
6665
self.assertEqual(m.position, 42)
@@ -70,7 +69,7 @@ def dummy(self):
7069
self.assertEqual(m.speed, 0)
7170
self.assertEqual(m.speed_sp, 0)
7271
self.assertEqual(m.state, ['running'])
73-
self.assertEqual(m.stop_command, 'coast')
72+
self.assertEqual(m.stop_action, 'coast')
7473
self.assertEqual(m.time_sp, 1000)
7574

7675
with self.assertRaises(Exception):

0 commit comments

Comments
 (0)