Skip to content

Commit

Permalink
convert: test for #2260
Browse files Browse the repository at this point in the history
  • Loading branch information
nathdwek@laptop committed Nov 13, 2016
1 parent 2e78628 commit 8067d82
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
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
Expand Down Expand Up @@ -215,6 +215,11 @@ def test_pretend(self):
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,
Expand Down

0 comments on commit 8067d82

Please sign in to comment.