Also create a radar interface

pull/1211/head
Willem Melching 6 years ago
parent 16b6c70884
commit 86e0202549
  1. 5
      selfdrive/car/tests/test_car_params.py

@ -1,5 +1,6 @@
#!/usr/bin/env python3
import unittest
import importlib
from selfdrive.car.fingerprints import all_known_cars
from selfdrive.car.car_helpers import interfaces
from selfdrive.car.fingerprints import _FINGERPRINTS as FINGERPRINTS
@ -25,8 +26,12 @@ class TestCarParam(unittest.TestCase):
car_params = CarInterface.get_params(car, fingerprints, has_relay, car_fw)
car_interface = CarInterface(car_params, CarController, CarState), car_params
RadarInterface = importlib.import_module('selfdrive.car.%s.radar_interface' % car_params.carName).RadarInterface
radar_interface = RadarInterface(car_params)
assert car_params
assert car_interface
assert radar_interface
if __name__ == "__main__":

Loading…
Cancel
Save