move mocking to setUp
@@ -145,13 +145,12 @@ class ParentWorkTest(unittest.TestCase, TestHelper):
"""Set up configuration"""
self.setup_beets()
self.load_plugins('parentwork')
+ musicbrainzngs.get_work_by_id = Mock(side_effect=mock_workid_response)
def tearDown(self):
self.unload_plugins()
self.teardown_beets()
- musicbrainzngs.get_work_by_id = Mock(side_effect=mock_workid_response)
-
def test_normal_case(self):
item = Item(path='/file', mb_workid='1', parentwork_workid_current='1')
item.add(self.lib)
