tests: fix special characters in parametrize with variables

This commit is contained in:
Fu Hanxi
2026-02-25 11:38:38 +01:00
parent 124a1d3b82
commit 93edb91bbc
2 changed files with 12 additions and 8 deletions
@@ -13,9 +13,10 @@ from pytest_embedded_idf.utils import idf_parametrize
],
indirect=True,
)
@pytest.mark.parametrize('test_message', ['test123456789!@#%^&*'])
@idf_parametrize('target', ['esp32s3'], indirect=['target'])
def test_usb_cdc_vfs_default(dut: Dut, test_message: str) -> None:
def test_usb_cdc_vfs_default(dut: Dut) -> None:
test_message = 'test123456789!@#%^&*'
# test run: test_usb_cdc_select
dut.expect_exact('test_usb_cdc_select', timeout=2)
dut.expect_exact('select timed out', timeout=2)