9ffb60f7a003f682ebc177692bfe504663df8074,utils/tests.py,AudioProcessingTestCase,test_stereofy_failed,#AudioProcessingTestCase#,658

Before Change


    @override_settings(SOUNDS_PATH=tempfile.mkdtemp())
    def test_stereofy_failed(self, *args):
        tmp_directory = self.pre_test()
        FreesoundAudioProcessor(sound_id=Sound.objects.first().id, tmp_directory=tmp_directory).process()
        // processing will fail because stereofy can"t work with generated random audio file or sterefy can"t be found
        self.sound.refresh_from_db()
        self.assertEqual(self.sound.processing_state, "FA")
        self.assertEqual(self.sound.processing_ongoing_state, "FI")

After Change


    @override_settings(SOUNDS_PATH=tempfile.mkdtemp())
    def test_stereofy_failed(self, *args):
        tmp_directory = self.pre_test()
        result = FreesoundAudioProcessor(sound_id=Sound.objects.first().id, tmp_directory=tmp_directory).process()
        // processing will fail because stereofy can"t work with generated random audio file or sterefy can"t be found
        self.assertFalse(result)  // Processing failed, retutned False
        self.sound.refresh_from_db()
        self.assertEqual(self.sound.processing_state, "FA")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 3

Instances


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_stereofy_failed


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_no_need_to_convert_to_pcm


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_skip_displays


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_make_ogg_previews_fails


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_sound_path_does_not_exist


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_conversion_to_pcm_failed


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_create_images_fails


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_make_mp3_previews_fails


Project Name: MTG/freesound
Commit Name: 9ffb60f7a003f682ebc177692bfe504663df8074
Time: 2019-04-10
Author: frederic.font@upf.edu
File Name: utils/tests.py
Class Name: AudioProcessingTestCase
Method Name: test_skip_previews