From e609319b3d4d4854881a1e88071364b7643efc93 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 8 Feb 2014 12:20:25 -0800 Subject: [PATCH] fix ihate tests --- test/test_ihate.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/test_ihate.py b/test/test_ihate.py index 86b3fc226..0b7f9affc 100644 --- a/test/test_ihate.py +++ b/test/test_ihate.py @@ -1,7 +1,7 @@ """Tests for the 'ihate' plugin""" from _common import unittest -from beets.importer import ImportTask +from beets import importer from beets.library import Item from beetsplug.ihate import IHatePlugin @@ -11,12 +11,13 @@ class IHatePluginTest(unittest.TestCase): def test_hate(self): match_pattern = {} - testItem = Item( + test_item = Item( genre='TestGenre', album=u'TestAlbum', artist=u'TestArtist') - task = ImportTask() - task.items = [testItem] + task = importer.ImportTask() + task.items = [test_item] + task.item = test_item task.is_album = False # Empty query should let it pass.