mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-22 22:42:05 +08:00
car docs test: check car name (#24193)
This commit is contained in:
@@ -63,6 +63,7 @@ class CarInfo:
|
||||
if self.min_enable_speed is not None:
|
||||
min_enable_speed = self.min_enable_speed
|
||||
|
||||
self.car_name = CP.carName
|
||||
self.make, self.model = self.name.split(' ', 1)
|
||||
self.row = {
|
||||
Column.MAKE: self.make,
|
||||
|
||||
@@ -20,7 +20,7 @@ class TestCarDocs(unittest.TestCase):
|
||||
# Asserts market-standard car naming conventions by make
|
||||
for cars in self.tier_cars.values():
|
||||
for car in cars:
|
||||
if car.make in ["Hyundai", "Kia"]:
|
||||
if car.car_name == "hyundai":
|
||||
tokens = car.model.lower().split(" ")
|
||||
self.assertNotIn("phev", tokens, "Use `Plug-in Hybrid`")
|
||||
self.assertNotIn("hev", tokens, "Use `Hybrid`")
|
||||
|
||||
Reference in New Issue
Block a user