mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-22 10:43:54 +08:00
* add vehicles.vue template * add original vue file * stash * stash * clean up a bit * add template for now * implement footnotes and tier copy * no more generator * convert to 2 spaces * should work, now onto vue * does GH handle this html well? * fix * auto-generate descriptions and make tiers' maps non-str * remove old files * move template specific variable into templates, should be a bit simpler * js template is simplier too now js template is simplier too now js template is simplier too now * add video links from the nice car_info * make rows attributes * clean up * fix * remove template * experiment with video links in GH add image how does this look? fix * Revert "experiment with video links in GH" This reverts commit 8375e717b563f7b4ecf009ffae00174de1a0b8e9. * sort tier_car_info in place * unused Tuple * no type check * fix script
19 lines
556 B
Python
Executable File
19 lines
556 B
Python
Executable File
#!/usr/bin/env python3
|
|
import unittest
|
|
|
|
from selfdrive.car.docs import CARS_MD_OUT, CARS_MD_TEMPLATE, generate_cars_md, get_tier_car_info
|
|
|
|
|
|
class TestCarDocs(unittest.TestCase):
|
|
def test_car_docs(self):
|
|
generated_cars_md = generate_cars_md(get_tier_car_info(), CARS_MD_TEMPLATE)
|
|
with open(CARS_MD_OUT, "r") as f:
|
|
current_cars_md = f.read()
|
|
|
|
self.assertEqual(generated_cars_md, current_cars_md,
|
|
"Run selfdrive/car/docs.py to generate new supported cars documentation")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|