Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Glatzel committed Oct 7, 2024
1 parent 239db28 commit 7e8a167
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/test_audio_load.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from pathlib import Path

import audiofile
Expand All @@ -6,19 +7,19 @@
import soundfile
import torchaudio
from scipy.io import wavfile
import os

dataset_dir = Path(__file__).parents[1] / "external/dataset-audio"

group = "Load "


def dataset():
if os.getenv("CI"):
return [dataset_dir / "two channel/ff-16b-2c-44100hz.wav"]
return list((dataset_dir / "BeeMoved").rglob("*.*")) + list((dataset_dir / "two channel").rglob("*.*"))
@pytest.fixture(
params=dataset(),
scope="module",
)


@pytest.fixture(params=dataset(), scope="module")
def file(request):
return request.param

Expand Down

0 comments on commit 7e8a167

Please sign in to comment.