from openpilot.common.test import OpenpilotTestCase
from openpilot.selfdrive.car.docs import CARS_MD_TEMPLATE, generate_cars_md
from opendbc.car.docs import get_all_car_docs


class TestCarDocs(OpenpilotTestCase):
  @classmethod
  def setup_class(cls):
    cls.all_cars = get_all_car_docs()

  def test_generator(self):
    generate_cars_md(self.all_cars, CARS_MD_TEMPLATE)
