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
13from unittest import TestCase
24
3- import sys
4- import os
55sys .path .append (os .path .dirname (__file__ ) + "/../" )
66try :
77 from PathPlanning .DynamicWindowApproach import dynamic_window_approach as m
8- except :
8+ except ImportError :
99 raise
1010
1111print (__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
2524if __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