mirror of
https://github.com/beetbox/beets.git
synced 2026-01-02 05:52:50 +01:00
convert: test for #2260
This commit is contained in:
parent
2e78628507
commit
8067d82be8
1 changed files with 6 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ import os.path
|
|||
from test import _common
|
||||
from test._common import unittest
|
||||
from test import helper
|
||||
from test.helper import control_stdin
|
||||
from test.helper import control_stdin, capture_log
|
||||
|
||||
from beets.mediafile import MediaFile
|
||||
from beets import util
|
||||
|
|
@ -215,6 +215,11 @@ class ConvertCliTest(unittest.TestCase, TestHelper, ConvertCommand):
|
|||
converted = os.path.join(self.convert_dest, b'converted.mp3')
|
||||
self.assertFalse(os.path.exists(converted))
|
||||
|
||||
def test_empty_query(self):
|
||||
with capture_log('beets.convert') as logs:
|
||||
self.run_convert('An impossible query')
|
||||
self.assertEqual(logs[0], u'convert: Empty query result.')
|
||||
|
||||
|
||||
@_common.slow_test()
|
||||
class NeverConvertLossyFilesTest(unittest.TestCase, TestHelper,
|
||||
|
|
|
|||
Loading…
Reference in a new issue