aboutsummaryrefslogtreecommitdiff
path: root/lib/project/tests/test_pipeline.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/project/tests/test_pipeline.py')
-rw-r--r--lib/project/tests/test_pipeline.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/project/tests/test_pipeline.py b/lib/project/tests/test_pipeline.py
index 0fa1c52..3f6000d 100644
--- a/lib/project/tests/test_pipeline.py
+++ b/lib/project/tests/test_pipeline.py
@@ -4,9 +4,9 @@ import numpy as np
import pytest
import soundfile as sf
-from voiceforge import pipeline
-from voiceforge.audio import loudness, measure
-from voiceforge.config import resolve
+from producer import pipeline
+from producer.audio import loudness, measure
+from producer.config import resolve
@pytest.mark.parametrize("kind", ["missing", "input-extension", "output-extension"])
@@ -103,7 +103,7 @@ def test_explicit_stereo_selection_preserves_signal_and_duration(wav, tmp_path,
np.testing.assert_allclose(actual, expected, atol=5e-7, rtol=0)
assert report["normalization_mode"] == "disabled"
assert report["level_correction_db"] == 0
- assert sf.info(target).subtype == "PCM_24"
+ assert sf.info(target).subtype == "PCM_32"
@pytest.mark.parametrize("rate", [44100, 48000])
@@ -116,7 +116,7 @@ def test_normalization_peak_ceiling_and_report(wav, tmp_path, progress, ffmpeg,
stats = sf.info(target)
assert stats.channels == 1
assert stats.samplerate == rate
- assert stats.subtype == "PCM_24"
+ assert stats.subtype == "PCM_32"
assert abs(stats.duration - 3) <= 0.02
verified = loudness(ffmpeg, target, settings, stats.duration, progress)
assert verified["input_i"] == pytest.approx(settings.target_lufs, abs=0.5)
@@ -125,7 +125,7 @@ def test_normalization_peak_ceiling_and_report(wav, tmp_path, progress, ffmpeg,
assert report["master"]["sample_peak_dbfs"] <= settings.true_peak_db + 0.1
assert json.loads(target.with_suffix(".report.json").read_text()) == report
assert source.read_bytes() == original
- assert not list(target.parent.glob(".voiceforge-*"))
+ assert not list(target.parent.glob(".producer-*"))
def test_limiter_without_normalization(wav, tmp_path, bypass, progress, ffmpeg):
@@ -183,7 +183,7 @@ def test_antiphase_mix_is_rejected_after_selection(wav, tmp_path, bypass, progre
pipeline.process(source, target, bypass, progress)
assert not target.exists()
assert not target.with_suffix(".report.json").exists()
- assert not list(tmp_path.glob(".voiceforge-*"))
+ assert not list(tmp_path.glob(".producer-*"))
def test_silent_selected_channel_is_rejected_after_selection(wav, tmp_path, bypass, progress, ffmpeg):
@@ -201,7 +201,7 @@ def test_zero_denoise_strength_skips_ai(wav, tmp_path, bypass, progress, ffmpeg,
def unexpected(*args, **kwargs):
pytest.fail("Zero denoise strength must not invoke AI")
- monkeypatch.setattr("voiceforge.ai.denoise", unexpected)
+ monkeypatch.setattr("producer.ai.denoise", unexpected)
bypass.denoiser = "deepfilter"
bypass.denoise_strength = 0
report = pipeline.process(wav(), tmp_path / "master.wav", bypass, progress)
@@ -244,7 +244,7 @@ def test_render_failure_preserves_existing_outputs_and_removes_temporary_files(w
with pytest.raises(RuntimeError, match="injected encoder failure"):
pipeline.process(source, target, bypass, progress, overwrite=True)
assert all(path.read_bytes() == b"previous publication" for path in outputs)
- assert not list(tmp_path.glob(".voiceforge-*"))
+ assert not list(tmp_path.glob(".producer-*"))
@pytest.mark.parametrize("overwrite", [False, True])