π π A Python library for audio.
C audioaudio-processingaudio-productionaudio-researchaudio-unitaugmentationjucemachine-learningpybind11pythonvst3vst3-host
Add explicit test for appending to a no-argument Pedalboard. (#360)
Peter Sobote41edc8d1730
diff --git a/tests/test_python_interface.py b/tests/test_python_interface.pyindex 1cbecf1..f0275df 100644--- a/tests/test_python_interface.py+++ b/tests/test_python_interface.py@@ -17,7 +17,7 @@import pytestimport numpy as np-from pedalboard import Pedalboard, Gain+from pedalboard import Pedalboard, Gain, Reverb@pytest.mark.parametrize("shape", [(44100,), (44100, 1), (44100, 2), (1, 4), (2, 4)])@@ -63,6 +63,12 @@ def test_repr():def test_is_list_like():+ assert len(Pedalboard()) == 0+ pb = Pedalboard()+ assert len(pb) == 0+ pb.append(Reverb())+ assert len(pb) == 1+gain = Gain(-6)assert len(Pedalboard([gain])) == 1