Skip to content

Commit 2b1b673

Browse files
committed
fix test
1 parent c0e75d2 commit 2b1b673

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

introduction/test_get_sensor_data.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
'''
22
'''
33

4+
# add PYTHONPATH
5+
import os
46
import sys
7+
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'software_installation'))
58
import unittest
69
from mock import patch
710
from cStringIO import StringIO
@@ -24,6 +27,7 @@ def test(self):
2427
perception.joint_temperature['HeadYaw'] = temperature
2528

2629
agent = MyAgent()
30+
agent.perception = perception
2731
agent.think(perception)
2832
sys.stdout.seek(0)
2933
your_answer = sys.stdout.readline()

introduction/test_set_joint_commands.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
'''
22
'''
3-
3+
# add PYTHONPATH
4+
import os
5+
import sys
6+
sys.path.append(os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'software_installation'))
47
import unittest
58
from mock import patch, MagicMock
69

0 commit comments

Comments
 (0)