From a7a638ec3966895111a95769c9c3f168005bb06a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ju=CC=88rgen=20Hock?= Date: Mon, 25 Mar 2024 18:15:01 +0100 Subject: [PATCH] Fix tests --- src/remucs/__init__.py | 1 + tests/test_remucs.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/remucs/__init__.py b/src/remucs/__init__.py index 1dba8cc..9939a6b 100644 --- a/src/remucs/__init__.py +++ b/src/remucs/__init__.py @@ -3,3 +3,4 @@ __version__ = importlib.metadata.version('remucs') from remucs.remucs import remucs +from remucs.options import RemucsOptions diff --git a/tests/test_remucs.py b/tests/test_remucs.py index 90896d2..776177b 100644 --- a/tests/test_remucs.py +++ b/tests/test_remucs.py @@ -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) @@ -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 @@ -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) @@ -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)