From df82e113e522cfa6c297d720fc51f7e37e67bb22 Mon Sep 17 00:00:00 2001 From: Bruno Cauet Date: Tue, 6 Jan 2015 21:20:43 +0100 Subject: [PATCH] Fix embedart tests --- test/test_embedart.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/test/test_embedart.py b/test/test_embedart.py index 818c0ab91..8e03c5eba 100644 --- a/test/test_embedart.py +++ b/test/test_embedart.py @@ -18,7 +18,7 @@ from _common import unittest from helper import TestHelper, capture_log from beets.mediafile import MediaFile -from beets import config +from beets import config, logging from beets.util import syspath from beets.util.artresizer import ArtResizer @@ -76,9 +76,10 @@ class EmbedartCliTest(unittest.TestCase, TestHelper): def test_art_file_missing(self): self.add_album_fixture() - with capture_log() as logs: + logging.getLogger('beets.embedart').setLevel(logging.DEBUG) + with capture_log('beets.embedart') as logs: self.run_command('embedart', '-f', '/doesnotexist') - self.assertIn(u'embedart: could not read image file:', ''.join(logs)) + self.assertIn(u'could not read image file:', ''.join(logs)) @require_artresizer_compare def test_reject_different_art(self):