2025-02-24 10:18:03 +08:00
|
|
|
# SPDX-FileCopyrightText: 2021-2025 Espressif Systems (Shanghai) CO LTD
|
2022-11-10 17:52:06 +08:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
import pytest
|
2025-02-24 10:18:03 +08:00
|
|
|
from pytest_embedded_idf.utils import idf_parametrize
|
2022-11-10 17:52:06 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
@pytest.mark.multi_dut_modbus_rs485
|
2025-02-24 10:18:03 +08:00
|
|
|
@pytest.mark.parametrize(
|
|
|
|
|
'count, config',
|
|
|
|
|
[
|
|
|
|
|
(
|
|
|
|
|
2,
|
|
|
|
|
'release',
|
|
|
|
|
)
|
|
|
|
|
],
|
|
|
|
|
indirect=True,
|
|
|
|
|
)
|
|
|
|
|
@idf_parametrize('target', ['esp32'], indirect=['target'])
|
|
|
|
|
def test_rs485_multi_dev(case_tester) -> None: # type: ignore
|
2022-11-10 17:52:06 +08:00
|
|
|
case_tester.run_all_multi_dev_cases(reset=True)
|