pytest_console_advanced.py 515 B

12345678910111213141516171819
  1. # SPDX-FileCopyrightText: 2021-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.esp32
  6. @pytest.mark.esp32c3
  7. @pytest.mark.generic
  8. @pytest.mark.parametrize('config', [
  9. 'history',
  10. 'nohistory',
  11. ], indirect=True)
  12. def test_console_advanced(config: str, dut: Dut) -> None:
  13. if config == 'history':
  14. dut.expect('Command history enabled')
  15. elif config == 'nohistory':
  16. dut.expect('Command history disabled')