mirror of
https://github.com/beetbox/beets.git
synced 2026-07-22 03:17:26 -04:00
Added AutotagImportHelper
This commit is contained in:
@@ -826,13 +826,20 @@ class AutotagStub:
|
||||
)
|
||||
|
||||
|
||||
class AutotagImportTestCase(ImportHelper, BeetsTestCase):
|
||||
class AutotagImportHelper(ImportHelper):
|
||||
matching = AutotagStub.IDENT
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
def setup_beets(self):
|
||||
super().setup_beets()
|
||||
self.matcher = AutotagStub(self.matching).install()
|
||||
self.addCleanup(self.matcher.restore)
|
||||
|
||||
def teardown_beets(self):
|
||||
self.matcher.restore()
|
||||
super().teardown_beets()
|
||||
|
||||
|
||||
class AutotagImportTestCase(AutotagImportHelper, BeetsTestCase):
|
||||
"""DEPRECATED: Use AutotagImportHelper instead."""
|
||||
|
||||
|
||||
@dataclass(slots=True)
|
||||
|
||||
Reference in New Issue
Block a user