Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jurihock committed Mar 25, 2024
1 parent cf501c5 commit a7a638e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/remucs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
__version__ = importlib.metadata.version('remucs')

from remucs.remucs import remucs
from remucs.options import RemucsOptions
8 changes: 4 additions & 4 deletions tests/test_remucs.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def probe(session, **kwargs):
sr = session['sr']
f = session['f']

remucs.remucs(src, data=data, **kwargs)
remucs.remucs(src, data, remucs.RemucsOptions(**kwargs))
y = numpy.array(soundfile.read(dst)[0])

db, hz = freqs(y, sr)
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_setup(session):
assert src.is_file()
assert soundfile.info(src).samplerate == sr

remucs.remucs(src, data=data)
remucs.remucs(src, data)
assert dst.is_file()
assert soundfile.info(dst).samplerate == sr

Expand Down Expand Up @@ -180,7 +180,7 @@ def test_norm(session):

def test_balance_left(session):

db = probe(session, balance=[0, 0, -1, 0])
db = probe(session, bala=[0, 0, -1, 0])
print('y balance left', db[0], db[1])

assert issame(db[0, 0], 0)
Expand All @@ -190,7 +190,7 @@ def test_balance_left(session):

def test_balance_right(session):

db = probe(session, balance=[0, 0, +1, 0])
db = probe(session, bala=[0, 0, +1, 0])
print('y balance right', db[0], db[1])

assert isless(db[0, 0], -40)
Expand Down

0 comments on commit a7a638e

Please sign in to comment.