From 1580cd7c6fe07a4e2d4fddc6ef44076f46a2bb5f Mon Sep 17 00:00:00 2001 From: firestar5683 <168790843+firestar5683@users.noreply.github.com> Date: Sat, 28 Nov 2026 12:15:37 -0600 Subject: [PATCH] Initialize Font Fixture for Training Review --- openpilot/selfdrive/ui/tests/test_onboarding_textures.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpilot/selfdrive/ui/tests/test_onboarding_textures.py b/openpilot/selfdrive/ui/tests/test_onboarding_textures.py index 5a8dff089d..f31a7f02ed 100644 --- a/openpilot/selfdrive/ui/tests/test_onboarding_textures.py +++ b/openpilot/selfdrive/ui/tests/test_onboarding_textures.py @@ -126,6 +126,7 @@ def test_first_texture_is_private_and_settings_review_constructs_fresh(monkeypat from openpilot.selfdrive.ui.layouts.settings import device monkeypatch.setattr(training_guide.TextureLoader, "queue", lambda self, paths: None) + monkeypatch.setattr(training_guide.gui_app, "font", lambda _: training_guide.rl.Font()) monkeypatch.setattr(training_guide.gui_app, "_load_image_from_path", lambda path: Path(path).name) monkeypatch.setattr(training_guide.gui_app, "_load_texture_from_image", lambda image: "private:" + image)