pytest_touch_element.py 503 B

123456789101112131415161718192021
  1. # SPDX-FileCopyrightText: 2022 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.esp32s2
  6. @pytest.mark.esp32s3
  7. @pytest.mark.generic
  8. @pytest.mark.parametrize(
  9. 'config',
  10. [
  11. 'opt_o0',
  12. 'opt_o2'
  13. ],
  14. indirect=True,
  15. )
  16. def test_touch_element(dut: Dut) -> None:
  17. dut.expect_exact('Press ENTER to see the list of tests')
  18. dut.write('*')
  19. dut.expect_unity_test_output(timeout=120)