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:
+13
-2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user