Skip to content

Commit

Permalink
adjusting tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiocat93 committed Oct 1, 2024
1 parent 5160191 commit dbc68cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/audio/tasks/features_extraction_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def test_extract_spectrogram_from_audios(resampled_mono_audio_sample: Audio) ->
assert all(isinstance(spec["spectrogram"], torch.Tensor) for spec in result)
# Spectrogram shape is (freq, time)
assert all(spec["spectrogram"].dim() == 2 for spec in result)
assert all(spec["spectrogram"].shape[0] == 201 for spec in result)
assert all(spec["spectrogram"].shape[0] == 513 for spec in result)


def test_extract_mel_spectrogram_from_audios(resampled_mono_audio_sample: Audio) -> None:
Expand Down

0 comments on commit dbc68cd

Please sign in to comment.