mirror of
https://github.com/beetbox/beets.git
synced 2025-12-07 17:16:07 +01:00
hybrid mocking
This commit is contained in:
parent
d71ee6bc31
commit
dba2e2320d
1 changed files with 3 additions and 0 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue