QA: add structural and model tests for story 1.1 scaffold

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>
This commit is contained in:
Matt Edholm
2026-04-22 22:31:55 -04:00
parent f3e6586a7a
commit 1ff68512f9
5 changed files with 139 additions and 6 deletions
+13 -2
View File
@@ -1,2 +1,13 @@
def test_placeholder() -> None:
pass
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()