Changeset 15a005d for python/tests


Ignore:
Timestamp:
May 15, 2016, 9:25:13 PM (8 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
ca89d9f
Parents:
85e0e76
Message:

python/tests/test_source.py: skip tests if no sounds were found

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_source.py

    r85e0e76 r15a005d  
    88
    99list_of_sounds = list_all_sounds('sounds')
    10 default_test_sound = list_of_sounds[0]
     10default_test_sound = None
    1111samplerates = [0, 44100, 8000, 32000]
    1212hop_sizes = [512, 1024, 64]
     
    2525    def setUp(self):
    2626        if not len(list_of_sounds): self.skipTest('add some sound files in \'python/tests/sounds\'')
     27        default_test_sound = list_of_sounds[0]
    2728
    2829class aubio_source_test_case(aubio_source_test_case_base):
     
    114115            f = source('path_to/unexisting file.mp3')
    115116
     117class aubio_source_test_wrong_params(aubio_source_test_case_base):
     118
    116119    def test_wrong_samplerate(self):
    117120        with self.assertRaises(ValueError):
Note: See TracChangeset for help on using the changeset viewer.