mirror of
https://github.com/beetbox/beets.git
synced 2026-12-01 08:18:03 -06:00
hybrid mocking
This commit is contained in:
@@ -21,6 +21,7 @@ import os
|
||||
import unittest
|
||||
from test.helper import TestHelper
|
||||
import mock
|
||||
import musicbrainzngs
|
||||
|
||||
from beets.library import Item
|
||||
from beetsplug import parentwork
|
||||
@@ -59,6 +60,8 @@ def mock_workid_response(mbid):
|
||||
return dp_work
|
||||
elif mbid == '3':
|
||||
return p_work
|
||||
else:
|
||||
return musicbrainzngs.get_work_by_id(mbid)
|
||||
|
||||
|
||||
class ParentWorkTest(unittest.TestCase, TestHelper):
|
||||
|
||||
Reference in New Issue
Block a user