arduino-esp32/tests/validation/wifi/test_wifi.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
403 B
Python

import logging
def test_wifi(dut):
LOGGER = logging.getLogger(__name__)
LOGGER.info("Starting WiFi Scan")
dut.expect_exact("Scan start")
dut.expect_exact("Scan done")
dut.expect_exact("Wokwi-GUEST")
LOGGER.info("WiFi Scan done")
LOGGER.info("Connecting to WiFi")
dut.expect_exact("WiFi connected")
dut.expect_exact("IP address:")
LOGGER.info("WiFi connected")