Skip to content

Commit

Permalink
Add explicit test for appending to a no-argument Pedalboard. (#360)
Browse files Browse the repository at this point in the history
* Add explicit test for appending to a no-argument Pedalboard.

* Update test_python_interface.py
  • Loading branch information
psobot authored Jul 30, 2024
1 parent 13ac7b7 commit e41edc8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_python_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

import pytest
import 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)])
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e41edc8

Please sign in to comment.