Changeset 8607a74 for python


Ignore:
Timestamp:
Nov 2, 2018, 10:09:36 PM (6 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/timestretch, fix/ffmpeg5, master
Children:
7fd92ca
Parents:
67024ff
Message:

[tests] [py27] make sure all classes are old-school 'new-style'

Location:
python/tests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_mfcc.py

    r67024ff r8607a74  
    1515new_deflts = [1024, 40, 13, 44100]
    1616
    17 class Test_aubio_mfcc:
     17class Test_aubio_mfcc(object):
    1818
    1919    members_args = 'name'
     
    7575
    7676
    77 class Test_aubio_mfcc_all_parameters:
     77class Test_aubio_mfcc_all_parameters(object):
    7878
    7979    run_values = [
  • python/tests/test_midi2note.py

    r67024ff r8607a74  
    1515        )
    1616
    17 class Test_midi2note_good_values:
     17class Test_midi2note_good_values(object):
    1818
    1919    @parametrize('midi, note', list_of_known_midis)
     
    2222        assert midi2note(midi) == (note)
    2323
    24 class Test_midi2note_wrong_values:
     24class Test_midi2note_wrong_values(object):
    2525
    2626    def test_midi2note_negative_value(self):
  • python/tests/test_note2midi.py

    r67024ff r8607a74  
    4545        )
    4646
    47 class Test_note2midi_good_values:
     47class Test_note2midi_good_values(object):
    4848
    4949    @parametrize('note, midi', list_of_known_notes)
     
    108108        self.assertRaises(ValueError, note2midi, 'CB+-3')
    109109
    110 class Test_note2midi_unknown_values:
     110class Test_note2midi_unknown_values(object):
    111111
    112112    @parametrize('note', list_of_unknown_notes)
  • python/tests/test_phasevoc.py

    r67024ff r8607a74  
    1818    return np.random.rand(hop_s).astype(float_type) * 2. - 1.
    1919
    20 class Test_aubio_pvoc_test_case:
     20class Test_aubio_pvoc_test_case(object):
    2121    """ pvoc object test case """
    2222
  • python/tests/test_sink.py

    r67024ff r8607a74  
    2020            all_params.append((hop_size, samplerate, soundfile))
    2121
    22 class Test_aubio_sink:
     22class Test_aubio_sink(object):
    2323
    2424    def test_wrong_filename(self):
  • python/tests/test_source.py

    r67024ff r8607a74  
    2424_debug = False
    2525
    26 class Test_aubio_source_test_case:
     26class Test_aubio_source_test_case(object):
    2727
    2828    @parametrize('filename', list_of_sounds)
     
    4141        f.close()
    4242
    43 class Test_aubio_source_read:
     43class Test_aubio_source_read(object):
    4444
    4545    def read_from_source(self, f):
     
    119119
    120120
    121 class Test_aubio_source_wrong_params:
     121class Test_aubio_source_wrong_params(object):
    122122
    123123    def test_wrong_file(self):
     
    172172        return total_frames
    173173
    174 class Test_aubio_source_with:
     174class Test_aubio_source_with(object):
    175175
    176176    @parametrize('filename', list_of_sounds)
Note: See TracChangeset for help on using the changeset viewer.