more missing

pull/33687/head
Shane Smiskol 11 months ago
parent d979ba5a56
commit a32b442b1c
  1. 2
      selfdrive/selfdrived/tests/test_alerts.py
  2. 4
      selfdrive/test/test_onroad.py

@ -38,7 +38,7 @@ class TestAlerts:
def test_events_defined(self):
# Ensure all events in capnp schema are defined in events.py
events = car.OnroadEvent.EventName.schema.enumerants
events = log.OnroadEvent.EventName.schema.enumerants
for name, e in events.items():
if not name.endswith("DEPRECATED"):

@ -13,7 +13,7 @@ from collections import Counter, defaultdict
from functools import cached_property
from pathlib import Path
from cereal import car
from cereal import log
import cereal.messaging as messaging
from cereal.services import SERVICE_LIST
from openpilot.common.basedir import BASEDIR
@ -422,7 +422,7 @@ class TestOnroad:
if msg.which() == "selfdriveState":
startup_alert = msg.selfdriveState.alertText1
break
expected = EVENTS[car.OnroadEvent.EventName.startup][ET.PERMANENT].alert_text_1
expected = EVENTS[log.OnroadEvent.EventName.startup][ET.PERMANENT].alert_text_1
assert startup_alert == expected, "wrong startup alert"
def test_engagable(self):

Loading…
Cancel
Save