mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 01:15:38 +01:00
convert: playlist: Test playlist existence
Broken commit around writing a unittest that checks for existence of an m3u file after convert has been called with --playlist option.
This commit is contained in:
parent
5dfff50005
commit
9930a5da59
1 changed files with 16 additions and 2 deletions
|
|
@ -184,8 +184,9 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
|
|||
}
|
||||
|
||||
def tearDown(self):
|
||||
self.unload_plugins()
|
||||
self.teardown_beets()
|
||||
pass
|
||||
#self.unload_plugins()
|
||||
#self.teardown_beets()
|
||||
|
||||
def test_convert(self):
|
||||
with control_stdin('y'):
|
||||
|
|
@ -293,6 +294,19 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
|
|||
converted = os.path.join(self.convert_dest, b'converted.ogg')
|
||||
self.assertNoFileTag(converted, 'ogg')
|
||||
|
||||
def test_playlist(self):
|
||||
with control_stdin('y'):
|
||||
self.run_convert('--playlist', 'playlist.m3u8')
|
||||
converted = os.path.join(self.convert_dest, b'converted.mp3')
|
||||
self.assertFileTag(converted, 'mp3')
|
||||
m3u_created = os.path.join(self.convert_dest, b'playlist.m3u8')
|
||||
self.assertTrue(os.path.exists(m3u_created))
|
||||
|
||||
def test_playlist_pretend(self):
|
||||
self.run_convert('--playlist', 'playlist.m3u8', '--pretend')
|
||||
m3u_created = os.path.join(self.convert_dest, b'playlist.m3u8')
|
||||
self.assertFalse(os.path.exists(m3u_created))
|
||||
|
||||
|
||||
@_common.slow_test()
|
||||
class NeverConvertLossyFilesTest(unittest.TestCase, TestHelper,
|
||||
|
|
|
|||
Loading…
Reference in a new issue