pytest_wifi_function.py 808 B

1234567891011121314151617181920212223242526272829
  1. # SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: Unlicense OR CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.supported_targets
  6. @pytest.mark.temp_skip_ci(targets=['esp32c2'], reason='esp32c2 are using xtal_26mhz')
  7. @pytest.mark.generic
  8. def test_wifi_unit_test(dut: Dut) -> None:
  9. dut.expect_exact('Press ENTER to see the list of tests')
  10. dut.write('*')
  11. dut.expect_unity_test_output()
  12. @pytest.mark.esp32c2
  13. @pytest.mark.xtal_26mhz
  14. @pytest.mark.parametrize(
  15. 'config, baud',
  16. [
  17. ('esp32c2_xtal26m', '74880'),
  18. ],
  19. indirect=True,
  20. )
  21. def test_wifi_connect_cases_esp32c2_xtal26m(dut: Dut) -> None:
  22. dut.expect_exact('Press ENTER to see the list of tests')
  23. dut.write('*')
  24. dut.expect_unity_test_output()