mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-23 09:20:30 +00:00
18 lines
732 B
Python
18 lines
732 B
Python
# SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
|
# SPDX-License-Identifier: Unlicense OR CC0-1.0
|
|
import pytest
|
|
from pytest_embedded import Dut
|
|
|
|
|
|
@pytest.mark.esp32
|
|
@pytest.mark.generic
|
|
def test_examples_fatfs_basic(dut: Dut) -> None:
|
|
dut.expect('example: Mounting FAT filesystem', timeout=90)
|
|
dut.expect('example: Filesystem mounted', timeout=90)
|
|
dut.expect('example: Opening file', timeout=90)
|
|
dut.expect('example: File written', timeout=90)
|
|
dut.expect('example: Reading file', timeout=90)
|
|
dut.expect('example: Read from file: \'This is written by the device\'', timeout=90)
|
|
dut.expect('example: Unmounting FAT filesystem', timeout=90)
|
|
dut.expect('example: Done', timeout=90)
|