convert: playlist: Remove clutter from test

- Remove comments in tearDown
- Don't test for converted.mp3, it's done in a separate test already, we
  only want to test for the playlist file here.
This commit is contained in:
J0J0 T 2022-08-12 06:48:06 +02:00 committed by J0J0 Todos
parent 9930a5da59
commit e41525adbc

View file

@ -184,9 +184,8 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
}
def tearDown(self):
pass
#self.unload_plugins()
#self.teardown_beets()
self.unload_plugins()
self.teardown_beets()
def test_convert(self):
with control_stdin('y'):
@ -297,8 +296,6 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
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))