mirror of
https://github.com/beetbox/beets.git
synced 2026-01-30 12:02:41 +01:00
parent
d0ac66bfe6
commit
56aba87fdc
1 changed files with 7 additions and 0 deletions
|
|
@ -165,6 +165,13 @@ class ConvertCliTest(unittest.TestCase, TestHelper):
|
|||
mediafile = MediaFile(converted)
|
||||
self.assertEqual(mediafile.images[0].data, image_data)
|
||||
|
||||
def test_skip_existing(self):
|
||||
converted = os.path.join(self.convert_dest, 'converted.mp3')
|
||||
self.touch(converted, content='XXX')
|
||||
self.run_command('convert', '--yes', self.item.path)
|
||||
with open(converted, 'r') as f:
|
||||
self.assertEqual(f.read(), 'XXX')
|
||||
|
||||
|
||||
class NeverConvertLossyFilesTest(unittest.TestCase, TestHelper):
|
||||
"""Test the effect of the `never_convert_lossy_files` option.
|
||||
|
|
|
|||
Loading…
Reference in a new issue