Matej Cepl
f092bd80a7
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-librosa?expand=0&rev=53
51 lines
1.3 KiB
Diff
51 lines
1.3 KiB
Diff
---
|
|
setup.cfg | 2 ++
|
|
tests/test_multichannel.py | 1 +
|
|
tests/test_util.py | 3 +++
|
|
3 files changed, 6 insertions(+)
|
|
|
|
--- a/setup.cfg
|
|
+++ b/setup.cfg
|
|
@@ -14,6 +14,8 @@ addopts = --mpl --mpl-baseline-path=tes
|
|
filterwarnings =
|
|
ignore::DeprecationWarning:audioread.*
|
|
ignore::DeprecationWarning:resampy.*
|
|
+markers =
|
|
+ network: tests requiring network connection
|
|
|
|
[flake8]
|
|
count = True
|
|
--- a/tests/test_multichannel.py
|
|
+++ b/tests/test_multichannel.py
|
|
@@ -914,6 +914,7 @@ def test_click_multi():
|
|
assert np.allclose(yout[..., 2000:2100], click)
|
|
|
|
|
|
+@pytest.mark.network
|
|
def test_nnls_multi(s_multi):
|
|
|
|
# Verify that a stereo melspectrogram can be reconstructed
|
|
--- a/tests/test_util.py
|
|
+++ b/tests/test_util.py
|
|
@@ -1385,17 +1385,20 @@ def test_phasor(dtype, angles, mag):
|
|
assert z2.dtype == librosa.util.dtype_r2c(dtype)
|
|
|
|
|
|
+@pytest.mark.network
|
|
def test_cite_released():
|
|
version = "0.10.1"
|
|
doi = "https://doi.org/10.5281/zenodo.8252662"
|
|
assert doi == librosa.cite(version=version)
|
|
|
|
|
|
+@pytest.mark.network
|
|
@pytest.mark.xfail(raises=librosa.ParameterError)
|
|
def test_cite_badversion():
|
|
librosa.cite(version="-1.5")
|
|
|
|
|
|
+@pytest.mark.network
|
|
@pytest.mark.xfail(raises=librosa.ParameterError)
|
|
def test_cite_unreleased():
|
|
librosa.cite("0.10.0.dev0")
|