pytest_console.py 362 B

12345678910111213
  1. # SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. from pytest_embedded import Dut
  5. @pytest.mark.generic
  6. @pytest.mark.supported_targets
  7. def test_console(dut: Dut) -> None:
  8. dut.expect_exact('Press ENTER to see the list of tests')
  9. dut.write('![ignore]')
  10. dut.expect_unity_test_output()