From fece1f39d0d03a39375fbf27c73612aa78a688fa Mon Sep 17 00:00:00 2001 From: nick Date: Thu, 2 Jul 2026 00:27:13 -0600 Subject: [PATCH] test: skip OLED setup assertion for LilyGO cargo board --- tests/test_http_api_contract.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_http_api_contract.py b/tests/test_http_api_contract.py index 9b5283b..844e24d 100644 --- a/tests/test_http_api_contract.py +++ b/tests/test_http_api_contract.py @@ -475,8 +475,9 @@ def test_cargo_oled_shows_setup_and_service_pages(): assert 'oledClear("Relays")' in source assert 'oledClear("Network")' in source assert 'oledClear("Alarms")' in source - app_config = Path("firmware/esp32/overland-controller/app_config.h").read_text() - if 'lilygo_t_relay_s3_6ch' not in app_config: + config = Path("firmware/esp32/overland-controller/config.h").read_text() + oled_disabled = "OLED_SETUP_ENABLED 0" in config or "LILYGO_T_RELAY_S3" in config + if not oled_disabled: assert "oledShowSetupPage();" in source assert "oledLoop();" in source