1ff68512f9
Replaces placeholder stubs in test_models.py, test_gpio_ctrl.py, and provisioning/test_provision_loop.py with real assertions. Adds new test_scaffold.py covering AC3 file-presence, importlib.resources airports.csv load, constants completeness, and main.py provisioning import guard. Extends ruff per-file-ignores so tests/provisioning/*.py may import from planemapper.provisioning. All 22 tests pass; ruff check and format --check both clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
14 lines
336 B
Python
14 lines
336 B
Python
from planemapper.gpio_ctrl import ButtonHoldDetector, LEDController
|
|
|
|
|
|
def test_button_hold_detector_returns_bool() -> None:
|
|
detector = ButtonHoldDetector()
|
|
result = detector.check()
|
|
assert isinstance(result, bool)
|
|
|
|
|
|
def test_led_controller_on_off_no_exception() -> None:
|
|
led = LEDController()
|
|
led.on()
|
|
led.off()
|