File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ import sys
1
3
from unittest import TestCase
2
4
3
- import sys
4
- import os
5
5
sys .path .append (os .path .dirname (__file__ ) + "/../" )
6
6
try :
7
7
from PathPlanning .DynamicWindowApproach import dynamic_window_approach as m
8
- except :
8
+ except ImportError :
9
9
raise
10
10
11
11
print (__file__ )
12
12
13
13
14
- class Test (TestCase ):
15
-
16
- def test1 (self ):
14
+ class TestDynamicWindowApproach (TestCase ):
15
+ def test_main1 (self ):
17
16
m .show_animation = False
18
17
m .main (gx = 1.0 , gy = 1.0 )
19
18
20
- def test2 (self ):
19
+ def test_main2 (self ):
21
20
m .show_animation = False
22
21
m .main (gx = 1.0 , gy = 1.0 , robot_type = m .RobotType .rectangle )
23
22
24
23
25
24
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 ()
You can’t perform that action at this time.
0 commit comments