Эх сурвалжийг харах

pytest: check duplicates test case/script names

Fu Hanxi 3 жил өмнө
parent
commit
67cd264535

+ 1 - 1
examples/storage/nvs_rw_value_cxx/pytest_nvs_rw_value_cxx.py

@@ -10,7 +10,7 @@ from pytest_embedded import Dut
 
 @pytest.mark.esp32
 @pytest.mark.esp32c3
-def test_examples_nvs_rw_value(dut: Dut) -> None:
+def test_examples_nvs_rw_value_cxx(dut: Dut) -> None:
     for i, counter_state in zip_longest(range(4), ('The value is not initialized yet!',), fillvalue='Done'):
         dut.expect('Opening Non-Volatile Storage \\(NVS\\) handle... Done', timeout=20)
         dut.expect('Reading restart counter from NVS ... {}'.format(counter_state), timeout=20)

+ 1 - 1
examples/storage/sd_card/sdspi/pytest_sdspi_card_example.py

@@ -13,7 +13,7 @@ from pytest_embedded import Dut
 @pytest.mark.esp32c3  # no runner available at the moment
 @pytest.mark.esp32s2
 @pytest.mark.sdcard_spimode
-def test_examples_sd_card_sdmmc(dut: Dut) -> None:
+def test_examples_sd_card_sdspi(dut: Dut) -> None:
     dut.expect('example: Initializing SD card', timeout=20)
     dut.expect('example: Using SPI peripheral', timeout=20)
 

+ 1 - 1
examples/system/ulp_fsm/ulp/pytest_ulp_fsm.py

@@ -12,7 +12,7 @@ from pytest_embedded import Dut
 @pytest.mark.esp32s2
 @pytest.mark.esp32s3
 @pytest.mark.generic
-def test_ulp_fsm(dut: Dut) -> None:
+def test_example_ulp_fsm(dut: Dut) -> None:
     dut.expect_exact('Not ULP wakeup')
     dut.expect_exact('Entering deep sleep')
 

+ 1 - 1
examples/system/ulp_fsm/ulp_adc/pytest_ulp_fsm_adc.py

@@ -10,7 +10,7 @@ from pytest_embedded import Dut
 @pytest.mark.esp32
 @pytest.mark.esp32s3
 @pytest.mark.generic
-def test_ulp_fsm_adc(dut: Dut) -> None:
+def test_example_ulp_fsm_adc(dut: Dut) -> None:
 
     dut.expect_exact('Not ULP wakeup')
     dut.expect_exact('Entering deep sleep')

+ 1 - 0
pytest.ini

@@ -11,6 +11,7 @@ addopts =
   --strict-markers
   --skip-check-coredump y
   --logfile-extension ".txt"
+  --check-duplicates y
 
 # ignore DeprecationWarning
 filterwarnings =

+ 1 - 1
tools/test_apps/system/longjmp_test/pytest_longjmp.py

@@ -8,5 +8,5 @@ from pytest_embedded import Dut
 @pytest.mark.esp32
 @pytest.mark.esp32s2
 @pytest.mark.generic
-def test_sys_memprot(dut: Dut) -> None:
+def test_sys_longjmp(dut: Dut) -> None:
     dut.expect_exact('Test successful')