Files
PythonRobotics/tests/test_lqr_rrt_star.py
Atsushi Sakai 4c5e3ccc9e fix VisibleDeprecation Warning (#358)
* try coverage

* add python warning setting

* add random seed for test coverage
2020-07-10 23:46:19 +09:00

28 lines
562 B
Python

from unittest import TestCase
import sys
import os
import random
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + "/../")
sys.path.append(os.path.dirname(os.path.abspath(__file__))
+ "/../PathPlanning/LQRRRTStar/")
try:
from PathPlanning.LQRRRTStar import lqr_rrt_star as m
except ImportError:
raise
print(__file__)
random.seed(12345)
class Test(TestCase):
def test1(self):
m.show_animation = False
m.main(maxIter=5)
if __name__ == '__main__': # pragma: no cover
test = Test()
test.test1()