aboutsummaryrefslogtreecommitdiff
path: root/lib/project/tests/test_cli.py
diff options
context:
space:
mode:
authorhistoria <historiavg@proton.me>2026-09-11 18:21:38 -0400
committerhistoria <historiavg@proton.me>2026-09-11 18:21:38 -0400
commit742093b18cd31e9d25c43f475b94c232fc28a5a7 (patch)
tree056cc617f2e32cd1d43fcf681728ece4df8af6b2 /lib/project/tests/test_cli.py
parent3eccf822e14f5f4dd1f6b96e785c0217db647c3e (diff)
downloadproducer-742093b18cd31e9d25c43f475b94c232fc28a5a7.tar.gz
feat: config.toml added
Diffstat (limited to 'lib/project/tests/test_cli.py')
-rw-r--r--lib/project/tests/test_cli.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/project/tests/test_cli.py b/lib/project/tests/test_cli.py
index e02aad1..05c8292 100644
--- a/lib/project/tests/test_cli.py
+++ b/lib/project/tests/test_cli.py
@@ -176,6 +176,22 @@ def test_default_outputs_are_written_beside_each_input(wav, tmp_path, ffmpeg, in
assert captured.err.count("Written:") == 2
+def test_process_keyword_is_optional(wav, tmp_path, ffmpeg, invoke, capsys):
+ source = wav()
+ original = source.read_bytes()
+ invoke(source, "--no-denoise")
+ assert {path.name for path in tmp_path.iterdir()} == {
+ "input.wav", "input.natural.wav", "logs"}
+ assert source.read_bytes() == original
+ assert capsys.readouterr().err.count("Written:") == 1
+
+
+def test_leading_flag_still_selects_process(wav, tmp_path, ffmpeg, invoke, capsys):
+ source = wav()
+ invoke("--no-denoise", source)
+ assert (tmp_path / "input.natural.wav").exists()
+
+
def test_output_and_output_dir_cannot_be_combined(wav, tmp_path, invoke, capsys):
with pytest.raises(SystemExit) as error:
invoke("process", wav(), "-o", tmp_path / "x.wav", "--output-dir", tmp_path / "outs")