9ffb60f7a003f682ebc177692bfe504663df8074,utils/tests.py,AudioProcessingTestCase,test_skip_displays,#AudioProcessingTestCase#,774

Before Change


    @override_settings(DISPLAYS_PATH=tempfile.mkdtemp())
    def test_skip_displays(self, *args):
        tmp_directory = self.pre_test()
        FreesoundAudioProcessor(sound_id=Sound.objects.first().id, tmp_directory=tmp_directory) \
            .process(skip_displays=True)

        self.assertTrue(os.path.exists(self.sound.locations("preview.LQ.ogg.path")))
        self.assertTrue(os.path.exists(self.sound.locations("preview.HQ.ogg.path")))
        self.assertTrue(os.path.exists(self.sound.locations("preview.LQ.mp3.path")))

After Change


    @override_settings(DISPLAYS_PATH=tempfile.mkdtemp())
    def test_skip_displays(self, *args):
        tmp_directory = self.pre_test()
        result = FreesoundAudioProcessor(sound_id=Sound.objects.first().id, tmp_directory=tmp_directory) \
            .process(skip_displays=True)

        self.assertTrue(os.path.exists(self.sound.locations("preview.LQ.ogg.path")))
        self.assertTrue(os.path.exists(self.sound.locations("preview.HQ.ogg.path")))
        self.assertTrue(os.path.exists(self.sound.locations("preview.LQ.mp3.path")))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 13

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_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_sound_path_does_not_exist


Project Name: OpenMined/PySyft
Commit Name: 3df9270ea1ad0f5eaf2b8815f4d82009f9ced465
Time: 2020-07-21
Author: rima@.com
File Name: src/syft/core/nodes/abstract/worker.py
Class Name: Worker
Method Name: recv_msg


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: OpenMined/PySyft
Commit Name: b98f36bb59333812f16eabb417258b41dedfec2c
Time: 2020-07-18
Author: rima@.com
File Name: src/syft/core/nodes/abstract/worker.py
Class Name: Worker
Method Name: recv_msg


Project Name: Theano/Theano
Commit Name: 3dfa558fca8bf57f1645261a0b8310cea9eaffd2
Time: 2017-01-09
Author: nouiz@nouiz.org
File Name: theano/tensor/subtensor.py
Class Name: SubtensorPrinter
Method Name: process


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_skip_previews


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_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_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_make_mp3_previews_fails


Project Name: Picovoice/porcupine
Commit Name: 6ea0b2b297af473ac73b98938f561a06b63a6bd9
Time: 2020-10-01
Author: alireza@picovoice.ai
File Name: binding/python/test_porcupine.py
Class Name: PorcupineTestCase
Method Name: test_process