@@ -57,6 +57,7 @@ def test_transcribe_help_exposes_model_capabilities_without_custom_sources():
5757 result = runner .invoke (cli .app , ["transcribe" , "--help" ])
5858
5959 assert result .exit_code == 0 , result .stdout
60+ help_text = unstyle (result .stdout )
6061 for option in (
6162 "--model" ,
6263 "--device" ,
@@ -70,15 +71,16 @@ def test_transcribe_help_exposes_model_capabilities_without_custom_sources():
7071 "--preview-mode" ,
7172 "--instruments" ,
7273 ):
73- assert option in result . stdout
74- assert "--soundfont" not in result . stdout
75- assert "PATH|URL" not in result . stdout
74+ assert option in help_text
75+ assert "--soundfont" not in help_text
76+ assert "PATH|URL" not in help_text
7677
7778
7879def test_batch_help_has_complete_batch_surface ():
7980 result = runner .invoke (cli .app , ["batch" , "--help" ])
8081
8182 assert result .exit_code == 0 , result .stdout
83+ help_text = unstyle (result .stdout )
8284 for option in (
8385 "--output-dir" ,
8486 "--format" ,
@@ -90,11 +92,11 @@ def test_batch_help_has_complete_batch_surface():
9092 "--fail-fast" ,
9193 "--notes" ,
9294 ):
93- assert option in result . stdout
94- assert "--soundfont" not in result . stdout
95- assert "--overwrite" not in result . stdout
96- assert "5-second audio" in result . stdout
97- assert "chunks per" in result . stdout
95+ assert option in help_text
96+ assert "--soundfont" not in help_text
97+ assert "--overwrite" not in help_text
98+ assert "5-second audio" in help_text
99+ assert "chunks per" in help_text
98100
99101
100102def _install_single_backend (monkeypatch , calls : list [str ]) -> None :
0 commit comments