mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-23 23:12:04 +08:00
100f89a161
* openpilot v0.9.9 release date: 2025-06-05T19:54:08 master commit: 8aadf02b2fd91f4e1285e18c2c7feb32d93b66f5 * AGNOS 12.4 (#35558) agnos12.4 --------- Co-authored-by: Vehicle Researcher <user@comma.ai> Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
23 lines
697 B
Python
23 lines
697 B
Python
import os
|
|
|
|
from openpilot.common.basedir import BASEDIR
|
|
from opendbc.car.docs import generate_cars_md, get_all_car_docs
|
|
from openpilot.selfdrive.debug.dump_car_docs import dump_car_docs
|
|
from openpilot.selfdrive.debug.print_docs_diff import print_car_docs_diff
|
|
from openpilot.selfdrive.car.docs import CARS_MD_TEMPLATE
|
|
|
|
|
|
class TestCarDocs:
|
|
@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)
|
|
|
|
def test_docs_diff(self):
|
|
dump_path = os.path.join(BASEDIR, "selfdrive", "car", "tests", "cars_dump")
|
|
dump_car_docs(dump_path)
|
|
print_car_docs_diff(dump_path)
|
|
os.remove(dump_path)
|