mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-02-17 05:41:37 -05:00
* Fix ModuleNotFoundError when executing test in the tests folder Signed-off-by: Trung Kien <letrungkien.k53.hut@gmail.com> * Improve model_predictive_speed_and_steer_control - Fix typo - Using @ for matrix multiplication instead of * with have been deprecated in CVXPY1.1 - Fix missing conftest module in test file Signed-off-by: Trung Kien <letrungkien.k53.hut@gmail.com>
19 lines
406 B
Python
19 lines
406 B
Python
import sys
|
|
import conftest
|
|
|
|
if 'cvxpy' in sys.modules: # pragma: no cover
|
|
|
|
from PathTracking.model_predictive_speed_and_steer_control \
|
|
import model_predictive_speed_and_steer_control as m
|
|
|
|
def test_1():
|
|
m.show_animation = False
|
|
m.main()
|
|
|
|
def test_2():
|
|
m.show_animation = False
|
|
m.main2()
|
|
|
|
if __name__ == '__main__':
|
|
conftest.run_this_test(__file__)
|