Changeset 0770148
- Timestamp:
- Dec 19, 2018, 7:40:15 PM (6 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master
- Children:
- 22d7902, 5f57ea9
- Parents:
- d0f19a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/tests/test_pitchshift.py
rd0f19a7 r0770148 2 2 3 3 from numpy.testing import TestCase 4 from nose2.tools import params4 from _tools import parametrize 5 5 import numpy as np 6 6 import aubio … … 67 67 aubio.pitchshift("default", -123) 68 68 69 class aubio_pitchshift_testruns(TestCase):69 class Test_aubio_pitchshift_testruns(object): 70 70 71 @params( 71 run_args = ['mode', 'pitchscale', 'hop_size', 'samplerate'] 72 run_values = [ 72 73 ("default", 1.2, 128, 44100), 73 74 ("crispness:0", 0.43, 64, 8000), … … 75 76 ("crispness:3", 1.53, 512, 8000), 76 77 ("crispness:6", 2.3, 4096, 192000), 77 ) 78 ] 79 80 @parametrize(run_args, run_values) 78 81 def test_run_with_params(self, mode, pitchscale, hop_size, samplerate): 79 82 try: … … 98 101 99 102 if __name__ == '__main__': 100 from nose2 import main101 main()103 from _tools import run_module_suite 104 run_module_suite()
Note: See TracChangeset
for help on using the changeset viewer.