diff --git a/tests/test_audio/test_audio.py b/tests/test_audio/test_audio.py index e765f34..bf027b5 100644 --- a/tests/test_audio/test_audio.py +++ b/tests/test_audio/test_audio.py @@ -2,6 +2,7 @@ from pathlib import Path import numpy as np +from uuid import uuid4 import pytest import xarray as xr from hypothesis import HealthCheck, given, settings @@ -84,7 +85,7 @@ def test_read_clip( wav = np.random.random((samples, channels)).astype(np.float32) # Save the wav to a file - path = tmp_path / "test.wav" + path = tmp_path / f"{uuid4()}.wav" # Save the wav with the adjusted samplerate adjusted_samplerate = int(np.floor(samplerate / time_expansion)) diff --git a/tests/test_audio/test_spectrograms.py b/tests/test_audio/test_spectrograms.py index 1099016..d669d76 100644 --- a/tests/test_audio/test_spectrograms.py +++ b/tests/test_audio/test_spectrograms.py @@ -1,7 +1,6 @@ """Test suite for spectrograms functions.""" import numpy as np -import pytest import xarray as xr from soundevent import audio, data