Skip to content

Commit d60414c

Browse files
committed
Explicitly specify ports for tested devices
1 parent 33e43bc commit d60414c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/api_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
class TestAPI(unittest.TestCase):
1717
def test_device(self):
1818
clean_arena()
19-
populate_arena({'medium_motor' : [0], 'infrared_sensor' : [0]})
19+
populate_arena({'medium_motor' : [0, 'outA'], 'infrared_sensor' : [0, 'in1']})
2020

2121
d = ev3.Device('tacho-motor', 'motor*')
2222
self.assertTrue(d.connected)
@@ -41,7 +41,7 @@ def dummy(self):
4141
pass
4242

4343
clean_arena()
44-
populate_arena({'medium_motor' : [0]})
44+
populate_arena({'medium_motor' : [0, 'outA']})
4545

4646
# Do not write motor.command on exit (so that fake tree stays intact)
4747
ev3.MediumMotor.__del__ = dummy
@@ -79,7 +79,7 @@ def dummy(self):
7979

8080
def test_infrared_sensor(self):
8181
clean_arena()
82-
populate_arena({'infrared_sensor' : [0]})
82+
populate_arena({'infrared_sensor' : [0, 'in1']})
8383

8484
s = ev3.InfraredSensor()
8585

0 commit comments

Comments
 (0)