~heckyel/librevideoconverter

921db4c99c9417875c0e456e57ed73c699c12e9e — Jesús 3 years ago 52ee678
Reorganize test
1 files changed, 48 insertions(+), 48 deletions(-)

M test/test_converter.py
M test/test_converter.py => test/test_converter.py +48 -48
@@ 773,30 773,6 @@ class TestConverterDefinitions(base.Test):
        })
        self.check_size('galaxyy', 320, 240)

    def test_webmhd720p(self):
        self.check_ffmpeg_arguments('webmhd720p', {
            'ab': '112k',
            'acodec': 'libvorbis',
            'ar': '44100',
            'b:v': '2M',
            'cpu_used': '0',
            'deadline': 'good',
            'f': 'webm',
            'g': '120',
            'i': self.input_path,
            'lag_in_frames': '16',
            'output_file': self.output_path,
            'qmax': '51',
            'qmin': '11',
            's': '542x320',
            'slices': '4',
            'strict': 'experimental',
            'vcodec': 'libvpx',
            'vprofile': '0',
            'map_metadata': '-1',
        })
        self.check_size('webmhd720p', 1080, 720)

    def test_galaxytab101(self):
        self.check_ffmpeg_arguments('galaxytab101', {
            'ab': '160k',


@@ 1027,6 1003,54 @@ class TestConverterDefinitions(base.Test):
        })
        self.check_size('iphone5', 1920, 1080)

    def test_webmuhd1080p(self):
        self.check_ffmpeg_arguments('webmuhd1080p', {
            'ab': '128k',
            'acodec': 'libvorbis',
            'ar': '44100',
            'b:v': '4M',
            'cpu_used': '0',
            'deadline': 'good',
            'f': 'webm',
            'g': '120',
            'i': self.input_path,
            'lag_in_frames': '23',
            'map_metadata': '-1',
            'output_file': self.output_path,
            'qmax': '51',
            'qmin': '11',
            's': '542x320',
            'slices': '4',
            'strict': 'experimental',
            'vcodec': 'libvpx',
            'vprofile': '0'
        })
        self.check_size('webmuhd1080p', 1920, 1080)

    def test_webmhd720p(self):
        self.check_ffmpeg_arguments('webmhd720p', {
            'ab': '112k',
            'acodec': 'libvorbis',
            'ar': '44100',
            'b:v': '2M',
            'cpu_used': '0',
            'deadline': 'good',
            'f': 'webm',
            'g': '120',
            'i': self.input_path,
            'lag_in_frames': '16',
            'output_file': self.output_path,
            'qmax': '51',
            'qmin': '11',
            's': '542x320',
            'slices': '4',
            'strict': 'experimental',
            'vcodec': 'libvpx',
            'vprofile': '0',
            'map_metadata': '-1',
        })
        self.check_size('webmhd720p', 1080, 720)

    def test_webmsd480p(self):
        self.check_ffmpeg_arguments('webmsd480p', {
            'ab': '112k',


@@ 1086,30 1110,6 @@ class TestConverterDefinitions(base.Test):
        })
        self.check_uses_input_size('webmvp8')

    def test_webmuhd1080p(self):
        self.check_ffmpeg_arguments('webmuhd1080p', {
            'ab': '128k',
            'acodec': 'libvorbis',
            'ar': '44100',
            'b:v': '4M',
            'cpu_used': '0',
            'deadline': 'good',
            'f': 'webm',
            'g': '120',
            'i': self.input_path,
            'lag_in_frames': '23',
            'map_metadata': '-1',
            'output_file': self.output_path,
            'qmax': '51',
            'qmin': '11',
            's': '542x320',
            'slices': '4',
            'strict': 'experimental',
            'vcodec': 'libvpx',
            'vprofile': '0'
        })
        self.check_size('webmuhd1080p', 1920, 1080)

    def test_galaxymini(self):
        self.check_ffmpeg_arguments('galaxymini', {
            'ab': '160k',