also call interface.apply in test

old-commit-hash: e31ebda7a3
commatwo_master
Willem Melching 5 years ago
parent 3206cb8ca2
commit ac9ecb3e3b
  1. 5
      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
Loading…
Cancel
Save