pytest_console_advanced.py 476 B

123456789101112131415161718
  1. # SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
  2. # SPDX-License-Identifier: CC0-1.0
  3. import pytest
  4. @pytest.mark.esp32
  5. @pytest.mark.esp32c3
  6. @pytest.mark.generic
  7. @pytest.mark.parametrize('config', [
  8. 'history',
  9. 'nohistory',
  10. ], indirect=True)
  11. def test_console_advanced(config, dut): # type: ignore
  12. if config == 'history':
  13. dut.expect('Command history enabled')
  14. elif config == 'nohistory':
  15. dut.expect('Command history disabled')