Skip to content

Commit afbcdfc

Browse files
committed
update tests
1 parent 35ea4b9 commit afbcdfc

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed
Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,27 @@
1+
import os
2+
import sys
13
from unittest import TestCase
24

3-
import sys
4-
import os
55
sys.path.append(os.path.dirname(__file__) + "/../")
66
try:
77
from PathPlanning.DynamicWindowApproach import dynamic_window_approach as m
8-
except:
8+
except ImportError:
99
raise
1010

1111
print(__file__)
1212

1313

14-
class Test(TestCase):
15-
16-
def test1(self):
14+
class TestDynamicWindowApproach(TestCase):
15+
def test_main1(self):
1716
m.show_animation = False
1817
m.main(gx=1.0, gy=1.0)
1918

20-
def test2(self):
19+
def test_main2(self):
2120
m.show_animation = False
2221
m.main(gx=1.0, gy=1.0, robot_type=m.RobotType.rectangle)
2322

2423

2524
if __name__ == '__main__': # pragma: no cover
26-
test = Test()
27-
test.test1()
28-
test.test2()
25+
test = TestDynamicWindowApproach()
26+
test.test_main1()
27+
test.test_main2()

0 commit comments

Comments
 (0)