Skip to content

Commit

Permalink
Mark test in test_upstream_hub with require_librosa
Browse files Browse the repository at this point in the history
  • Loading branch information
albertvillanova committed Jul 12, 2024
1 parent 5f42709 commit d658aaf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/test_upstream_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@
)
from datasets.utils.file_utils import cached_path
from datasets.utils.hub import hf_dataset_url
from tests.fixtures.hub import CI_HUB_ENDPOINT, CI_HUB_USER, CI_HUB_USER_TOKEN
from tests.utils import for_all_test_methods, require_pil, require_sndfile, xfail_if_500_502_http_error

from .fixtures.hub import CI_HUB_ENDPOINT, CI_HUB_USER, CI_HUB_USER_TOKEN
from .utils import for_all_test_methods, require_librosa, require_pil, require_sndfile, xfail_if_500_502_http_error


pytestmark = pytest.mark.integration
Expand Down Expand Up @@ -383,6 +384,7 @@ def test_push_dataset_to_hub_custom_features(self, temporary_repo):
assert ds.features == hub_ds.features
assert ds[:] == hub_ds[:]

@require_librosa
@require_sndfile
def test_push_dataset_to_hub_custom_features_audio(self, temporary_repo):
audio_path = os.path.join(os.path.dirname(__file__), "features", "data", "test_audio_44100.wav")
Expand Down

0 comments on commit d658aaf

Please sign in to comment.