dashboard: add passive CAN capture markers
This commit is contained in:
@@ -15,3 +15,15 @@ def test_setup_done_button_event_is_handled():
|
||||
assert "LV_EVENT_CLICKED" in callback
|
||||
assert "lv_obj_add_flag(setup_keyboard, LV_OBJ_FLAG_HIDDEN);" in callback
|
||||
assert "lv_obj_add_event_cb(done_button, setup_keyboard_event_cb, LV_EVENT_CLICKED" in source
|
||||
|
||||
|
||||
def test_dashboard_can_is_passive_and_logs_changed_frames():
|
||||
source = DASHBOARD.read_text()
|
||||
|
||||
assert "TWAI_MODE_LISTEN_ONLY" in source
|
||||
assert "twai_transmit(" not in source
|
||||
assert "log_changed_can_frame(message);" in source
|
||||
assert 'Serial.print("CAN,");' in source
|
||||
assert 'can_serial_command.startsWith("TEMP,")' in source
|
||||
assert 'can_serial_command.startsWith("MARK,")' in source
|
||||
assert 'Serial.print("MARK,");' in source
|
||||
|
||||
Reference in New Issue
Block a user