arduino-esp32/tests/validation/gpio/test_gpio.py
Lucas Saavedra Vaz 9e643c08a7
fix(testing): Checkout proper branch for Wokwi tests and small QoL improvements (#10435)
* fix(tests): Add missing newlines to output

* fix(tests): Improve fibonacci test

* fix(tests): Remove redundant targets from json

* fix(wokwi): Checkout proper base branch for wokwi tests

* feat(logging): Add logging to some tests to improve debugging

* fix(ci): Make CI more permissive and improve messages

* fix(tests): Bump pytest-embedded version to support P4
2024-10-21 15:45:59 +03:00

15 lines
390 B
Python

import logging
def test_gpio(dut):
LOGGER = logging.getLogger(__name__)
dut.expect_exact("Button test")
LOGGER.info("Expecting button press 1")
dut.expect_exact("Button pressed 1 times")
LOGGER.info("Expecting button press 2")
dut.expect_exact("Button pressed 2 times")
LOGGER.info("Expecting button press 3")
dut.expect_exact("Button pressed 3 times")