From 4cd5508b8b8531e5e370a1a3d47e3f5a146f06c5 Mon Sep 17 00:00:00 2001 From: aleks Date: Mon, 25 Aug 2025 16:23:07 +0200 Subject: [PATCH] fix target test issues ut --- .../mb_controller_common/pytest_mb_controller_common.py | 8 ++------ .../mb_controller_mapping/pytest_mb_controller_mapping.py | 8 ++------ .../unit_tests/mb_ext_types/pytest_mb_endianness_utils.py | 1 + 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/test_apps/unit_tests/mb_controller_common/pytest_mb_controller_common.py b/test_apps/unit_tests/mb_controller_common/pytest_mb_controller_common.py index a299069..29e7616 100644 --- a/test_apps/unit_tests/mb_controller_common/pytest_mb_controller_common.py +++ b/test_apps/unit_tests/mb_controller_common/pytest_mb_controller_common.py @@ -5,12 +5,8 @@ import pytest from pytest_embedded import Dut -CONFIGS = [ - pytest.param('generic', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3]), -] - - +@pytest.mark.parametrize('target', ['esp32'], indirect=True) +@pytest.mark.parametrize('config', ['generic'], indirect=True) @pytest.mark.multi_dut_modbus_generic -@pytest.mark.parametrize('config', CONFIGS, indirect=True) def test_modbus_controller_common(dut: Dut) -> None: dut.expect_unity_test_output() diff --git a/test_apps/unit_tests/mb_controller_mapping/pytest_mb_controller_mapping.py b/test_apps/unit_tests/mb_controller_mapping/pytest_mb_controller_mapping.py index 0095389..f0708ed 100644 --- a/test_apps/unit_tests/mb_controller_mapping/pytest_mb_controller_mapping.py +++ b/test_apps/unit_tests/mb_controller_mapping/pytest_mb_controller_mapping.py @@ -5,12 +5,8 @@ import pytest from pytest_embedded import Dut -CONFIGS = [ - pytest.param('serial', marks=[pytest.mark.esp32, pytest.mark.esp32s2, pytest.mark.esp32s3, pytest.mark.esp32c3]), -] - - @pytest.mark.multi_dut_modbus_generic -@pytest.mark.parametrize('config', CONFIGS, indirect=True) +@pytest.mark.parametrize('target', ['esp32'], indirect=True) +@pytest.mark.parametrize('config', ['serial'], indirect=True) def test_modbus_controller_mapping(dut: Dut) -> None: dut.expect_unity_test_output() diff --git a/test_apps/unit_tests/mb_ext_types/pytest_mb_endianness_utils.py b/test_apps/unit_tests/mb_ext_types/pytest_mb_endianness_utils.py index d29aa85..433c046 100644 --- a/test_apps/unit_tests/mb_ext_types/pytest_mb_endianness_utils.py +++ b/test_apps/unit_tests/mb_ext_types/pytest_mb_endianness_utils.py @@ -4,6 +4,7 @@ import pytest from pytest_embedded import Dut + @pytest.mark.parametrize('target', ['esp32'], indirect=True) @pytest.mark.multi_dut_modbus_generic def test_mb_endianness_utils(dut: Dut) -> None: