コード例 #1
0
ファイル: test_edit.py プロジェクト: phytonmem/beets.phyton
 def setUp(self):
     self.setup_beets()
     self.load_plugins('edit')
     # Create some mediafiles, and store them for comparison.
     self._create_import_dir(3)
     self.items_orig = [Item.from_path(f.path) for f in self.media_files]
     self.matcher = AutotagStub().install()
     self.matcher.matching = AutotagStub.GOOD
     self.config['import']['timid'] = True
コード例 #2
0
 def setUp(self):
     self.setup_plugin_loader()
     self.setup_beets()
     self._create_import_dir(3)
     self._setup_import_session()
     self.matcher = AutotagStub().install()
     # keep track of ui.input_option() calls
     self.input_options_patcher = patch('beets.ui.input_options',
                                        side_effect=ui.input_options)
     self.mock_input_options = self.input_options_patcher.start()
コード例 #3
0
ファイル: test_importadded.py プロジェクト: tux-00/beets
 def setUp(self):
     preserve_plugin_listeners()
     self.setup_beets()
     self.load_plugins('importadded')
     self._create_import_dir(2)
     # Different mtimes on the files to be imported in order to test the
     # plugin
     modify_mtimes((mfile.path for mfile in self.media_files))
     self.min_mtime = min(
         os.path.getmtime(mfile.path) for mfile in self.media_files)
     self.matcher = AutotagStub().install()
     self.matcher.macthin = AutotagStub.GOOD
     self._setup_import_session()
     self.importer.add_choice(importer.action.APPLY)
コード例 #4
0
 def setUp(self):
     self.setup_beets()
     self.load_plugins('mbsubmit')
     self._create_import_dir(2)
     self._setup_import_session()
     self.matcher = AutotagStub().install()