pytest_onewire.py 541 B

1234567891011121314151617
  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.esp32
  6. @pytest.mark.esp32s2
  7. @pytest.mark.esp32s3
  8. @pytest.mark.esp32c3
  9. @pytest.mark.esp32c6
  10. @pytest.mark.esp32h2
  11. @pytest.mark.generic
  12. def test_onewire_example(dut: Dut) -> None:
  13. dut.expect_exact('example: 1-Wire bus installed on GPIO')
  14. dut.expect_exact('example: Device iterator created, start searching')
  15. dut.expect_exact('example: Searching done')