GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
2
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
process_podcast
Browse code
Added tests for the AudioSegment class (ref #31).
master
1 parent
e07b477
commit
fc374b60247cc8eb8a1804dc39dcf49ee0083db4
Nigel Stanger
authored
on 25 Sep 2018
Patch
Showing
1 changed file
segment/tests/test_audio_segment.py
Ignore Space
Show notes
View
segment/tests/test_audio_segment.py
0 → 100644
import unittest from segment import AudioSegment from segment.tests import SegmentSharedTestCase class AudioSegmentTestCase(SegmentSharedTestCase): """Test the AudioSegment class.""" EXPECTED_TEMP_SUFFIX = ".wav" EXPECTED_TYPE = "audio" EXPECTED_TRIM = "atrim" EXPECTED_SETPTS = "asetpts" def setUp(self): """Set up for test.""" super().setUp() self.segment = AudioSegment( file=self.EXPECTED_INPUT_FILE, punch_in=self.EXPECTED_PUNCH_IN, punch_out=self.EXPECTED_PUNCH_OUT, input_stream=self.EXPECTED_INPUT_STREAM) self.expected_output_options = [ "-ac", "1", "-map", "{n}:a".format(n=self.segment.input_stream) ] # Remove SegmentSharedTestCase from the namespace so we don't run # the shared tests twice. See <https://stackoverflow.com/a/22836015>. del(SegmentSharedTestCase)
Show line notes below