Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AtsushiSakai committed Oct 20, 2019
1 parent 35ea4b9 commit afbcdfc
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions tests/test_dynamic_window_approach.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
import os
import sys
from unittest import TestCase

import sys
import os
sys.path.append(os.path.dirname(__file__) + "/../")
try:
from PathPlanning.DynamicWindowApproach import dynamic_window_approach as m
except:
except ImportError:
raise

print(__file__)


class Test(TestCase):

def test1(self):
class TestDynamicWindowApproach(TestCase):
def test_main1(self):
m.show_animation = False
m.main(gx=1.0, gy=1.0)

def test2(self):
def test_main2(self):
m.show_animation = False
m.main(gx=1.0, gy=1.0, robot_type=m.RobotType.rectangle)


if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()
test.test2()
test = TestDynamicWindowApproach()
test.test_main1()
test.test_main2()

0 comments on commit afbcdfc

Please sign in to comment.