Changeset d194d8c


Ignore:
Timestamp:
Oct 29, 2018, 3:32:55 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/pydocstrings, feature/timestretch, fix/ffmpeg5, master
Children:
e126e65
Parents:
c9c012e
Message:

[py] [slicing] add check_first=True to tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/tests/test_slicing.py

    rc9c012e rd194d8c  
    2424    def test_slice_start_only_no_zero(self):
    2525        regions_start = [i*1000 for i in range(1, n_slices)]
    26         slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir)
     26        slice_source_at_stamps(self.source_file, regions_start,
     27                output_dir = self.output_dir, create_first=True)
    2728
    2829    def test_slice_start_beyond_end(self):
    2930        regions_start = [i*1000 for i in range(1, n_slices)]
    3031        regions_start += [count_samples_in_file(self.source_file) + 1000]
    31         slice_source_at_stamps(self.source_file, regions_start, output_dir = self.output_dir)
     32        slice_source_at_stamps(self.source_file, regions_start,
     33                output_dir = self.output_dir, create_first=True)
    3234
    3335    def test_slice_start_every_blocksize(self):
     
    153155        regions_end = None
    154156        slice_source_at_stamps (self.source_file, regions_start, regions_end,
    155                 output_dir = self.output_dir)
     157                output_dir = self.output_dir, create_first=True)
    156158        total_files = count_files_in_directory(self.output_dir)
    157159        assert_equal(n_slices, total_files,
Note: See TracChangeset for help on using the changeset viewer.