Skip to content

Commit edaebc2

Browse files
author
Gao Wei
committed
ci: Update function name in pytest_xxx.py
1 parent ef9d01a commit edaebc2

File tree

9 files changed

+18
-11
lines changed

9 files changed

+18
-11
lines changed

elements/test_apps/pytest_gmf.py renamed to elements/test_apps/pytest_gmf_elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
],
1818
indirect=True,
1919
)
20-
def test_gmf_core(dut: Dut) -> None:
20+
def test_gmf_elements(dut: Dut) -> None:
2121
dut.run_all_single_board_cases(timeout=2000)
File renamed without changes.

gmf_examples/basic_examples/pipeline_play_embed_music/pytest_pipeline_play_embed_music.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
@pytest.mark.esp32
1212
@pytest.mark.AUDIO_LOOPBACK_ENV
13-
def test_audio_similarity_compare(dut: Dut)-> None:
13+
def test_pipeline_play_embed_music_similarity_compare(dut: Dut)-> None:
1414
script_path = os.path.abspath(__file__)
1515
script_dir = os.path.dirname(script_path)
1616
filename = os.path.join(script_dir, 'output.wav')
@@ -32,5 +32,5 @@ def test_audio_similarity_compare(dut: Dut)-> None:
3232
recorder.request_audio_similarity(url)
3333

3434
@pytest.mark.esp32s3
35-
def test_str_detect(dut: Dut)-> None:
35+
def test_pipeline_play_embed_music_str_detect(dut: Dut)-> None:
3636
dut.expect(r'ESP_GMF_EMBED_FLASH: Closed, pos: 231725/231725', timeout=30)

gmf_examples/basic_examples/pipeline_play_sdcard_music/pytest_pipeline_play_sdcard_music.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010

1111
@pytest.mark.esp32
1212
@pytest.mark.esp32s3
13-
def test_str_detect(dut: Dut)-> None:
13+
def test_pipeline_play_sdcard_music_str_detect(dut: Dut)-> None:
1414
dut.expect(r'Destroy all the resources', timeout=30)

gmf_examples/basic_examples/pipeline_record_sdcard/pytest_pipeline_record_sdcard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99

1010
@pytest.mark.esp32
1111
@pytest.mark.esp32s3
12-
def test_str_detect(dut: Dut)-> None:
12+
def test_pipeline_record_sdcard_str_detect(dut: Dut)-> None:
1313
dut.expect(r'ESP_GMF_TASK: One times job is complete, del', timeout=20)

packages/esp_audio_simple_player/test_apps/pytest_esp_audio_simple_player.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
],
1818
indirect=True,
1919
)
20-
def test_gmf_core(dut: Dut) -> None:
20+
def test_esp_audio_simple_player(dut: Dut) -> None:
2121
dut.run_all_single_board_cases(timeout=2000)

packages/gmf_app_utils/test_apps/pytest_gmf.py renamed to packages/gmf_app_utils/test_apps/pytest_gmf_app_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
],
1818
indirect=True,
1919
)
20-
def test_gmf_core(dut: Dut) -> None:
20+
def test_gmf_app_utils(dut: Dut) -> None:
2121
dut.run_all_single_board_cases(timeout=2000)

packages/gmf_loader/test_apps/pytest_gmf_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
],
1717
indirect=True,
1818
)
19-
def test_gmf_core(dut: Dut) -> None:
19+
def test_gmf_loader(dut: Dut) -> None:
2020
dut.run_all_single_board_cases(timeout=2000)

pytest.ini

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,23 @@
22
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
33
python_files = pytest_*.py
44

5+
# ignore PytestExperimentalApiWarning for record_xml_attribute
56
# set traceback to "short" to prevent the overwhelming tracebacks
67
addopts =
7-
-s
8+
-s -vv
89
--embedded-services esp,idf
910
--tb short
11+
--strict-markers
1012
--skip-check-coredump y
13+
--logfile-extension ".txt"
14+
--check-duplicates y
15+
--ignore-glob */managed_components/*
16+
--ignore pytest-embedded
1117

12-
# ignore PytestExperimentalApiWarning for record_xml_attribute
18+
# ignore DeprecationWarning
1319
filterwarnings =
20+
ignore::DeprecationWarning:matplotlib.*:
21+
ignore::DeprecationWarning:google.protobuf.*:
1422
ignore::_pytest.warning_types.PytestExperimentalApiWarning
1523

1624
# log related
@@ -22,7 +30,6 @@ log_cli_date_format = %Y-%m-%d %H:%M:%S
2230
# junit related
2331
junit_family = xunit1
2432

25-
2633
## log all to `system-out` when case fail
2734
junit_logging = stdout
2835
junit_log_passing_tests = False

0 commit comments

Comments
 (0)