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()
