Esempio n. 1
0
 def _no_candidates_test(self, result):
     task = importer.ImportTask(
         'toppath',
         'path',
         [_common.item()],
     )
     task.set_match('artist', 'album', [], autotag.RECOMMEND_NONE)
     res = commands.choose_match(task, _common.iconfig(None, quiet=False))
     self.assertEqual(res, result)
     self.assertTrue('No match' in self.io.getoutput())
Esempio n. 2
0
 def _no_candidates_test(self, result):
     task = importer.ImportTask(
         'toppath',
         'path',
         [_common.item()],
     )
     task.set_match('artist', 'album', [], autotag.RECOMMEND_NONE)
     res = commands.choose_match(task, _common.iconfig(None, quiet=False))
     self.assertEqual(res, result)
     self.assertTrue('No match' in self.io.getoutput())
Esempio n. 3
0
 def _no_candidates_test(self, result):
     res = commands.choose_match(
         'path',
         [test_db.item()], # items
         'artist',
         'album',
         [], # candidates
         autotag.RECOMMEND_NONE
     )
     self.assertEqual(res, result)
     self.assertTrue('No match' in self.io.getoutput())
Esempio n. 4
0
 def _no_candidates_test(self, result):
     task = importer.ImportTask("toppath", "path", [_common.item()])
     task.set_match("artist", "album", [], autotag.RECOMMEND_NONE)
     res = commands.choose_match(task, _common.iconfig(None, quiet=False))
     self.assertEqual(res, result)
     self.assertTrue("No match" in self.io.getoutput())