From ac9ecb3e3b91708fc122fd107c9794ea81cbf38c Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Fri, 6 Mar 2020 17:02:37 -0800 Subject: [PATCH] also call interface.apply in test old-commit-hash: e31ebda7a304f9783928edf6b5f4697b86e695f9 --- .../car/tests/{test_car_params.py => test_car_interfaces.py} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename selfdrive/car/tests/{test_car_params.py => test_car_interfaces.py} (92%) diff --git a/selfdrive/car/tests/test_car_params.py b/selfdrive/car/tests/test_car_interfaces.py similarity index 92% rename from selfdrive/car/tests/test_car_params.py rename to selfdrive/car/tests/test_car_interfaces.py index 88f7d680f..73423fed6 100755 --- a/selfdrive/car/tests/test_car_params.py +++ b/selfdrive/car/tests/test_car_interfaces.py @@ -8,8 +8,8 @@ from selfdrive.car.fingerprints import _FINGERPRINTS as FINGERPRINTS from cereal import car -class TestCarParam(unittest.TestCase): - def test_creating_car_params(self): +class TestCarInterfaces(unittest.TestCase): + def test_car_interfaces(self): all_cars = all_known_cars() for car_name in all_cars: @@ -33,6 +33,7 @@ class TestCarParam(unittest.TestCase): # Run car interface once CC = car.CarControl.new_message() car_interface.update(CC, []) + car_interface.apply(CC) # Test radar interface RadarInterface = importlib.import_module('selfdrive.car.%s.radar_interface' % car_params.carName).RadarInterface