Exemplo n.º 1
0
 def test_extensions_presets(self):
     """Checks we associate file extensions to the muxers of the presets."""
     project = self.create_simple_project()
     with mock.patch("pitivi.preset.xdg_data_home") as xdg_data_home:
         xdg_data_home.return_value = "/pitivi-dir-which-does-not-exist"
         preset_manager = EncodingTargetManager(project.app)
         preset_manager.loadAll()
         self.assertTrue(preset_manager.presets)
         for unused_name, container_profile in preset_manager.presets.items():
             # Preset name is only set when the project loads it
             project.set_container_profile(container_profile)
             muxer = container_profile.get_preset_name()
             self.assertIsNotNone(extension_for_muxer(muxer), container_profile)
Exemplo n.º 2
0
 def test_extensions_presets(self):
     """Checks we associate file extensions to the muxers of the presets."""
     project = self.create_simple_project()
     with mock.patch("pitivi.preset.xdg_data_home") as xdg_data_home:
         xdg_data_home.return_value = "/pitivi-dir-which-does-not-exist"
         preset_manager = EncodingTargetManager(project.app)
         preset_manager.loadAll()
         self.assertTrue(preset_manager.presets)
         for unused_name, container_profile in preset_manager.presets.items():
             # Preset name is only set when the project loads it
             project.set_container_profile(container_profile)
             muxer = container_profile.get_preset_name()
             self.assertIsNotNone(extension_for_muxer(muxer), container_profile)